Trait statrs::statistics::Min[][src]

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

The Min trait specifies than an object has a minimum value

Required methods

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

Examples

use statrs::statistics::Min;
use statrs::distribution::Uniform;

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

Implementors