fn weighted_quantile(samples: &mut [(f64, f64)], q: f64) -> f64
The weighted q-quantile of (weight, value) samples.
q
(weight, value)