Function quantiles::misra_gries::misra_gries [] [src]

pub fn misra_gries<I, V>(stream: I, k: usize) -> BTreeMap<V, usize> where I: IntoIterator<Item=V>, V: Ord + Clone

Calculates the k most frequent elements in the iterable stream of elements stream using an ε-approximate frequency count where ε = 1/(k+1)