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§
Sourcefn par_estimate(&self, x: &Set<usize>, z: &Set<usize>) -> T::CPD
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
xis empty. - Panics if
xandzare not disjoint. - Panics if
xorzare not in the model.
§Returns
The estimated values of x conditioned on z.