pub trait Mode<T> { fn mode(&self) -> T; }
The Mode trait specifies that an object has a closed form solution for its mode(s)
Mode
Returns the mode, if one exists.
use statrs::statistics::Mode; use statrs::distribution::Uniform; let n = Uniform::new(0.0, 1.0).unwrap(); assert_eq!(Some(0.5), n.mode());