pub struct HypothesisSelector { /* private fields */ }Expand description
Selects the Bayesian hypothesis that supplies action confidence.
Implementations§
Source§impl HypothesisSelector
impl HypothesisSelector
Sourcepub fn new(
predicate: KnowledgePredicate,
value: EvidenceValue,
minimum_posterior: Probability,
required_strength: RequiredStrength,
) -> Self
pub fn new( predicate: KnowledgePredicate, value: EvidenceValue, minimum_posterior: Probability, required_strength: RequiredStrength, ) -> Self
Creates an exact claim selector and minimum confidence threshold.
Sourcepub fn predicate(&self) -> &KnowledgePredicate
pub fn predicate(&self) -> &KnowledgePredicate
Returns the selected claim predicate.
Sourcepub fn value(&self) -> &EvidenceValue
pub fn value(&self) -> &EvidenceValue
Returns the selected claim value.
Sourcepub fn minimum_posterior(&self) -> Probability
pub fn minimum_posterior(&self) -> Probability
Returns the minimum accepted posterior.
Sourcepub fn required_strength(&self) -> RequiredStrength
pub fn required_strength(&self) -> RequiredStrength
Returns the required rule-assigned strength.
Trait Implementations§
Source§impl Clone for HypothesisSelector
impl Clone for HypothesisSelector
Source§fn clone(&self) -> HypothesisSelector
fn clone(&self) -> HypothesisSelector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HypothesisSelector
impl Debug for HypothesisSelector
Source§impl<'de> Deserialize<'de> for HypothesisSelector
impl<'de> Deserialize<'de> for HypothesisSelector
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HypothesisSelector
Source§impl PartialEq for HypothesisSelector
impl PartialEq for HypothesisSelector
Source§impl Serialize for HypothesisSelector
impl Serialize for HypothesisSelector
impl StructuralPartialEq for HypothesisSelector
Auto Trait Implementations§
impl Freeze for HypothesisSelector
impl RefUnwindSafe for HypothesisSelector
impl Send for HypothesisSelector
impl Sync for HypothesisSelector
impl Unpin for HypothesisSelector
impl UnsafeUnpin for HypothesisSelector
impl UnwindSafe for HypothesisSelector
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more