pub fn ecdf(data: &[f64]) -> Result<Ecdf, StatsError>Expand description
Compute the ECDF of data. Non-finite values are ignored. Returns
StatsError::EmptyInput if no finite values remain.
let e = ecdf(&[3.0, 1.0, 2.0, 2.0]).unwrap();
assert_eq!(e.x, vec![1.0, 2.0, 3.0]);
assert_eq!(e.p, vec![0.25, 0.75, 1.0]);