pub trait Conditional<S> {
// Required method
fn sample(&mut self, index: usize, given: &[S]) -> S;
}Expand description
A trait for conditional distributions.
This trait specifies how to sample a single coordinate of a state given the entire current state. It is primarily used in Gibbs sampling to update one coordinate at a time.