ParBNInference

Trait ParBNInference 

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

A trait for parallel inference with Bayesian Networks.

Required Methods§

Source

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

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

§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§