uniqueness-periods-vector-stats-0.4.0.0: A very basic descriptive statistics.
Copyright(c) OleksandrZhabenko 2020-2023
LicenseMIT
Maintaineroleksandr.zhabenko@yahoo.com
StabilityExperimental
Safe HaskellSafe-Inferred
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

meanWithDispersionP :: (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.

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

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

meanWithDispersionDP :: [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.

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

Among the meanWithDispP, meanWithDispF2P and meanWithDispD2P better to use the last one.

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

Among the meanWithDispP, meanWithDispF2P and meanWithDispD2P better to use the last one.

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

Among the meanWithDispP, meanWithDispF2P and meanWithDispD2P better to use the last one.

meanWithDisp :: (RealFrac a, Floating 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 meanWithDisp, meanWithDispF2 and meanWithDispD2 better to use the last one.

meanWithDispF2 :: [Float] -> (Float, Float) 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 meanWithDisp, meanWithDispF2 and meanWithDispD2 better to use the last one.

meanWithDispD2 :: [Double] -> (Double, Double) 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 meanWithDisp, meanWithDispF2 and meanWithDispD2 better to use the last one.