Safe Haskell | Safe |
---|---|
Language | Haskell98 |
- mean :: Fractional a => [a] -> a
- meanWgh :: Floating a => [(a, a)] -> a
- average :: Fractional a => [a] -> a
- harmean :: Fractional a => [a] -> a
- geomean :: Floating a => [a] -> a
- stddev :: Floating a => [a] -> a
- stddevp :: Floating a => [a] -> a
- var :: Fractional b => [b] -> b
- pvar :: Fractional a => [a] -> a
- centralMoment :: (Fractional b, Integral t) => [b] -> t -> b
- devsq :: Floating a => [a] -> a
- skew :: Floating b => [b] -> b
- pearsonSkew1 :: (Ord a, Floating a) => [a] -> a
- pearsonSkew2 :: (Ord a, Floating a) => [a] -> a
- kurt :: Floating b => [b] -> b
- median :: (Fractional a, Ord a) => [a] -> a
- modes :: Ord a => [a] -> [(Int, a)]
- mode :: Ord a => [a] -> Maybe a
- iqr :: [a] -> [a]
- quantile :: (Fractional b, Ord b) => Double -> [b] -> b
- quantileAsc :: (Fractional b, Ord b) => Double -> [b] -> b
- range :: (Num a, Ord a) => [a] -> a
- avgdev :: Floating a => [a] -> a
- covar :: Floating a => [a] -> [a] -> a
- covMatrix :: Floating a => [[a]] -> [[a]]
- pearson :: Floating a => [a] -> [a] -> a
- correl :: Floating a => [a] -> [a] -> a
- linreg :: Floating b => [(b, b)] -> (b, b, b)
Different mean variants
mean :: Fractional a => [a] -> a Source
Numerically stable mean
meanWgh :: Floating a => [(a, a)] -> a Source
Mean with weight. First element in tuple is element, second its weight
average :: Fractional a => [a] -> a Source
Same as mean
harmean :: Fractional a => [a] -> a Source
Harmonic mean
Variance, standard deviation and moments
var :: Fractional b => [b] -> b Source
Unbiased estimate of sample variance
pvar :: Fractional a => [a] -> a Source
Population variance
centralMoment :: (Fractional b, Integral t) => [b] -> t -> b Source
Central moments
Skewness and kurtosis
pearsonSkew1 :: (Ord a, Floating a) => [a] -> a Source
Calculates first Pearson skewness coeffcient.
pearsonSkew2 :: (Ord a, Floating a) => [a] -> a Source
Calculate second Pearson skewness coeffcient.
Median, mode and quantiles
median :: (Fractional a, Ord a) => [a] -> a Source
Median
quantile :: (Fractional b, Ord b) => Double -> [b] -> b Source
Arbitrary quantile q of an unsorted list. The quantile q of N data points is the point whose (zero-based) index in the sorted data set is closest to q(N-1).
quantileAsc :: (Fractional b, Ord b) => Double -> [b] -> b Source
As quantile
specialized for sorted data