Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

math-helpers

klaemo509BSD0.1.0

Tiny statistics helper lib. Robust and fast.

math, statistics, average, standard deviation, linear regression

readme

math-helpers

Tiny statistics helper lib. Robust and fast.

Installation

npm install math-helpers

Usage

var math = require('math-helpers')(/* optional options */)

var avg = math.avg([1, 2, 3])

Options

You can pass some options to the module.

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