uniqueness-periods-vector-stats-0.2.0.0: A very basic descriptive statistics.
Copyright(c) OleksandrZhabenko 2020
LicenseMIT
Maintainerolexandr543@yahoo.com
StabilityExperimental
Safe HaskellNone
LanguageHaskell2010

Numeric.Stats

Description

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

Synopsis

Documentation

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. Similar code is here: Don Stewart. https://donsbot.wordpress.com/2008/05/06/write-haskell-as-fast-as-c-exploiting-strictness-laziness-and-recursion/ And here: http://fixpt.de/blog/2017-12-04-strictness-analysis-part-1.html And here: Michael Snoyman. https://www.fpcomplete.com/blog/2017/09/all-about-strictness/ When using the needed, please, refer better to their variants.

Among the meanWithDispersion, meanWithDisprsionF and meanWithDispersionD better to use the last one.

meanWithDispersionF :: [Float] -> Float# -> Float# -> Int# -> (Float, Float) Source #

Among the meanWithDispersion, meanWithDisprsionF and meanWithDispersionD better to use the last one.

meanWithDispersionD :: [Double] -> Double# -> Double# -> Int# -> (Double, Double) Source #

Among the meanWithDispersion, meanWithDisprsionF and meanWithDispersionD better to use the last one.

meanF :: [Float] -> Float Source #

Uses mean2F inside.

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

Among the meanWithDisp, meanWithDispF2 and meanWithDispD2 better to use the last one.

meanWithDispF2 :: [Float] -> (Float, Float) Source #

Among the meanWithDisp, meanWithDispF2 and meanWithDispD2 better to use the last one.

meanWithDispD2 :: [Double] -> (Double, Double) Source #

Among the meanWithDisp, meanWithDispF2 and meanWithDispD2 better to use the last one.