Trait statrs::statistics::Mode[][src]

pub trait Mode<T> {
    fn mode(&self) -> T;
}
Expand description

The Mode trait specifies that an object has a closed form solution for its mode(s)

Required methods

Returns the mode, if one exists.

Examples

use statrs::statistics::Mode;
use statrs::distribution::Uniform;

let n = Uniform::new(0.0, 1.0).unwrap();
assert_eq!(Some(0.5), n.mode());

Implementors