Trait constriction::stream::model::Inverse
source · pub trait Inverse: Distribution {
// Required method
fn inverse(&self, p: f64) -> Self::Value;
}
Expand description
Re-export of probability::distribution::Inverse
.
Most users will never have to interact with this trait directly. When a method requires
a type that implements Inverse
, 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 capable of inverting the distribution function.