Trait statrs::statistics::Min

source ·
pub trait Min<T> {
    // Required method
    fn min(&self) -> T;
}
Expand description

The Min trait specifies than an object has a minimum value

Required Methods§

source

fn min(&self) -> T

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§