A collection of JavaScript statistical functions for arrays
max
min
range
midrange
sum
product
countEach
mean
geometricMean
harmonicMean
median
modes
variance
standardDeviation
meanAbsoluteDeviation
medianAbsoluteDeviation
zScores
They are all methods of the stat
object. They all accept an array as their only argument. stat.countEach
returns an object, stat.modes
and stat.zScores
return an array, and the rest return a number.