iter-stats-0.1.0.4: iteratees for statistical processing

Safe HaskellNone
LanguageHaskell98

Statistics.Iteratee.Sample

Synopsis

Documentation

minMaxNBy :: forall m prio s el. (Monad m, Ord prio, ListLikey s el) => Int -> (el -> prio) -> Iteratee s m ([(prio, el)], [(prio, el)]) Source

range :: (Monad m, ListLikey s el, Num el, Ord el) => Iteratee s m el Source

O(n) Range. The difference between the largest and smallest elements of a stream.

mean :: forall s m el. (Fractional el, Monad m, ListLikey s el) => Iteratee s m el Source

O(n) Arithmetic mean. Uses Welford's algorithm.

harmonicMean :: (Fractional el, Monad m, ListLikey s el) => Iteratee s m el Source

O(n) Harmonic mean.

variance :: (Fractional b, Monad m, ListLikey s b) => Iteratee s m b Source

O(n) Maximum likelihood estimate of a sample's variance, using Knuth's algorithm.

stdDev :: (Floating b, Monad m, Functor m, ListLikey s b) => Iteratee s m b Source

/O(n) Standard deviation, using Knuth's algorithm.