Skip to main content

median

Function median 

Source
pub fn median(xs: &[f64]) -> f64
Expand description

Compute the median of a slice of floats. Handles even-length lists by averaging the two central values. The input is cloned; the caller’s slice is untouched.