pub trait DispersionExt {
// Required methods
fn inv_phi(self) -> f64;
fn sqrt_phi(self) -> f64;
}Expand description
Extension methods on Dispersion used by the sampling code, kept here
so we do not need to touch the canonical definition in
solver::estimate. The conversions are all phi-aware: inv_phi()
and sqrt_phi() are floored away from zero so that downstream
arithmetic never produces NaN / Inf on a pathological zero
dispersion.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".