pub fn mode<T, I>(it: I) -> Option<T>
Expand description
Compute the exact mode on a stream of data.
(This has time complexity O(nlogn)
and space complexity O(n)
.)
If the data does not have a mode, then None
is returned.
pub fn mode<T, I>(it: I) -> Option<T>
Compute the exact mode on a stream of data.
(This has time complexity O(nlogn)
and space complexity O(n)
.)
If the data does not have a mode, then None
is returned.