Sampler

Trait Sampler 

Source
pub trait Sampler<T: ProbabilisticType> {
    // Required method
    fn sample(
        &self,
        root_node: &ConstTree<UncertainNodeContent>,
    ) -> Result<SampledValue, UncertainError>;
}
Expand description

A trait for sampling strategies.

Required Methods§

Source

fn sample( &self, root_node: &ConstTree<UncertainNodeContent>, ) -> Result<SampledValue, UncertainError>

Generates a single sample from the computation graph.

Implementors§