math-helpers

Tiny statistics helper lib. Robust and fast.

math-helpers

Tiny statistics helper lib. Robust and fast.

npm install math-helpers
var math = require('math-helpers')(/* optional options */)
 
var avg = math.avg([1, 2, 3])
 

You can pass some options to the module.

{
  precision: 3 // results will be rounded to this number of decimals 
}