Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 542 Bytes

README.md

File metadata and controls

24 lines (21 loc) · 542 Bytes

stat.js

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.