Fast Statistics functions for elm
avg : List.Nonempty.Nonempty Basics.Float -> Basics.Float
Calculate the mean of a list of Float
avgInt : List.Nonempty.Nonempty Basics.Int -> Basics.Int
Calculate the mean of a list of Int
mean : List.Nonempty.Nonempty Basics.Float -> Basics.Float
Alias for avg
meanInt : List.Nonempty.Nonempty Basics.Int -> Basics.Int
Alias for avgInt
median : List.Nonempty.Nonempty Basics.Float -> Basics.Float
Get the median of a sorted list of Float
If the length of the list is even, the retun value is the average of the two values at the middle of the list.
medianInt : List.Nonempty.Nonempty Basics.Int -> Basics.Int
Get the median of a sorted list of Int
If the length of the list is even, the retun value is the average of the two values at the middle of the list.
percentile : Basics.Float -> List.Nonempty.Nonempty Basics.Float -> Basics.Float
Get the element at a position in percent from a list
If the percentage doesn't exactly match an element the value is interpolated from the two closest elements
percentileInt : Basics.Float -> List.Nonempty.Nonempty Basics.Int -> Basics.Int
Get the element at a position in percent from a list
If the percentage doesn't exactly match an element the value is interpolated from the two closest elements
percentiles : List Basics.Float -> List.Nonempty.Nonempty Basics.Float -> List Basics.Float
Get elements at multiple positions in percent from a list
If the percentage doesn't exactly match an element the value is interpolated from the two closest elements
percentilesInt : List Basics.Float -> List.Nonempty.Nonempty Basics.Int -> List Basics.Int
Get elements at multiple positions in percent from a list
If the percentage doesn't exactly match an element the value is interpolated from the two closest elements
minimum : List.Nonempty.Nonempty number -> number
Wrapper for List.minimum
maximum : List.Nonempty.Nonempty number -> number
Wrapper for List.maximum
minmax : List.Nonempty.Nonempty number -> ( number, number )
Get minimum and maximum from list
occurrences : List number -> Dict number Basics.Int
Get a Dict
containing the numbers from the list as keys
and the number of occurrences for each number as value
variance : List.Nonempty.Nonempty Basics.Float -> Basics.Float
Get The variance of a population of Float
varianceInt : List.Nonempty.Nonempty Basics.Int -> Basics.Int
Get The variance of a population of Int
This function uses mostly Int calculations wich can cause rounding errors.
See function variance
(which uses Float) for more precise results.
stdDeviation : List.Nonempty.Nonempty Basics.Float -> Basics.Float
Get the standard deviation of a population of Float
stdDeviationInt : List.Nonempty.Nonempty Basics.Int -> Basics.Int
Get the standard deviation of a population of Int
sum : List.Nonempty.Nonempty number -> number
Wrapper for List.sum
product : List.Nonempty.Nonempty number -> number
Wrapper for List.product