BNInference

Trait BNInference 

Source
pub trait BNInference<T>
where T: BN,
{ // Required method fn estimate(&self, x: &Set<usize>, z: &Set<usize>) -> T::CPD; }
Expand description

A trait for inference with Bayesian Networks.

Required Methods§

Source

fn estimate(&self, x: &Set<usize>, z: &Set<usize>) -> T::CPD

Estimate the values of x conditioned on z using n samples.

§Arguments
  • x - The set of variables.
  • z - The set of conditioning variables.
§Panics
  • Panics if x is empty.
  • Panics if x and z are not disjoint.
  • Panics if x or z are not in the model.
§Returns

The estimated values of x conditioned on z.

Implementors§