Trait statrs::statistics::Max [] [src]

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

The Max trait specifies that an object has a maximum value

Required Methods

Returns the maximum value in the domain of a given distribution representable by a double-precision float. May panic depending on the implementor.

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