uniqueness-periods-vector-stats-0.1.1.0: A very basic descriptive statistics.

Copyright(c) OleksandrZhabenko 2020
LicenseMIT
StabilityExperimental
Safe HaskellNone
LanguageHaskell2010

Numeric.Stats

Description

Maintainer : olexandr543@yahoo.com

A very basic descriptive statistics. Functions use a tail recursion approach to compute the values and are strict by an accumulator.

Synopsis

Documentation

mean2 :: RealFrac a => [a] -> a -> a -> a -> a Source #

A tail-recursive realization for the statistic mean.

mean2F :: [Float] -> Float# -> Float# -> Float# -> Float Source #

Similar to mean2, but uses GHC unlifted types from ghc-prim package.

meanWithDispersion :: (RealFrac a, Floating a) => [a] -> a -> a -> a -> a -> a -> (a, a) Source #

One-pass and tail-recursive realization for the pair of the mean and dispersion. Is vulnerable to the floating-point cancellation errors.

mean :: RealFrac a => [a] -> a Source #

A tail-recursive realization for the statistic mean. A variant of the mean2 function.

meanF :: [Float] -> Float Source #

Uses mean2F inside.

meanWithDisp :: (RealFrac a, Floating a) => [a] -> (a, a) Source #