Function engram::statistics::median

source ·
pub fn median<T: Into<f64> + Copy>(data: &[T]) -> Option<f64>
Expand description

Returns the median of a list of values

§Examples

let values = vec![1.0, 9.0, 2.5, 3.0, 2.0, 8.0];
let median = median(&values);