median

Function median 

Source
pub fn median(values: &[f64]) -> Option<f64>
Expand description

2026-09-26: True median of the finite values: the middle element for odd n, the mean of the two middle elements for even n. Not percentile(values, 50), whose index for n=3 is 2, the maximum.