Probability

Trait Probability 

Source
pub trait Probability {
    // Required method
    fn prob(&self) -> f64;
}

Required Methods§

Source

fn prob(&self) -> f64

Returns non-negative probability of occurance.

Probability must be within range of 0 to 1.

Implementors§