Trait constriction::stream::model::Distribution

source ·
pub trait Distribution {
    type Value;

    // Required method
    fn distribution(&self, x: f64) -> f64;
}
Expand description

Re-export of probability::distribution::Distribution.

Most users will never have to interact with this trait directly. When a method requires a type that implements Distribution, most users will likely use a predefined type from the probability crate. You only need to implement this trait if you want to use a probability distribution that is not (yet) provided by the probability crate.

§See Also

A distribution.

Required Associated Types§

source

type Value

The type of outcomes.

Required Methods§

source

fn distribution(&self, x: f64) -> f64

Compute the cumulative distribution function.

Implementors§