pub enum McSamplingMethod {
Rejection,
EvidenceClamping,
}Expand description
Sampling method for Monte Carlo inference.
Variants§
Rejection
Sample from prior, discard worlds where evidence is not satisfied.
EvidenceClamping
Force evidence variables in the sampler; every sample counts.
Implementations§
Trait Implementations§
Source§impl Clone for McSamplingMethod
impl Clone for McSamplingMethod
Source§fn clone(&self) -> McSamplingMethod
fn clone(&self) -> McSamplingMethod
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 moreimpl Copy for McSamplingMethod
Source§impl Debug for McSamplingMethod
impl Debug for McSamplingMethod
impl Eq for McSamplingMethod
Source§impl From<ProbMethod> for McSamplingMethod
impl From<ProbMethod> for McSamplingMethod
Source§fn from(value: ProbMethod) -> Self
fn from(value: ProbMethod) -> Self
Converts to this type from the input type.
Source§impl PartialEq for McSamplingMethod
impl PartialEq for McSamplingMethod
Source§fn eq(&self, other: &McSamplingMethod) -> bool
fn eq(&self, other: &McSamplingMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for McSamplingMethod
Auto Trait Implementations§
impl Freeze for McSamplingMethod
impl RefUnwindSafe for McSamplingMethod
impl Send for McSamplingMethod
impl Sync for McSamplingMethod
impl Unpin for McSamplingMethod
impl UnsafeUnpin for McSamplingMethod
impl UnwindSafe for McSamplingMethod
Blanket Implementations§
impl<T> Allocation for T
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<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