pub fn min<T>(data: &[T]) -> Option<T>where
T: PartialOrd + Copy,Expand description
Computes the minimum value in a data series.
NOTE: Returns None if the input slice is empty.
ยงExamples
use quant_mathema::stats::min;
let data = [4.0, 2.0, 7.0, 1.0, 9.0];
let result = min(&data);
assert_eq!(result, Some(1.0));