Skip to main content

sample

Function sample 

Source
pub fn sample(d: &Dist, rng: &mut Rng) -> Value
Expand description

A draw when sampling: an outcome chosen with its probability, with a value for each of its draws, from its distribution where it can be.