1.0.0 • Published 9 years ago

stats-variance v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

Variance Build Status

Calculate variance of data.

Installation

$ npm install stats-variance

Usage

var variance = require('stats-variance');

var data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];

variance.calc(data); // → 8.25

API

calc(data)

data

Type: array

The data to be analysed; an array of numbers considered as the entire population. The following formula is used for calculation http://en.wikipedia.org/wiki/Variance#Population_variance.

License

MIT © Michał Jezierski