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

The Max trait specifies that an object has a maximum value

Required Methods

Returns the maximum value in the domain of a given distribution if it exists, otherwise None.

Examples
use statrs::statistics::Max;
use statrs::distribution::Uniform;

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

Implementors