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