pub fn quartiles<I>(it: I) -> Option<(f64, f64, f64)>where I: Iterator, <I as Iterator>::Item: PartialOrd + ToPrimitive,
Compute the exact 1-, 2-, and 3-quartiles (Q1, Q2 a.k.a. median, and Q3) on a stream of data.
(This has time complexity O(n log n) and space complexity O(n).)
O(n log n)
O(n)