stats-mean
v1.0.0
Published
Calculate mean of data
Downloads
215
Maintainers
Readme
Mean
Calculate mean of data.
Installation
$ npm install stats-mean
Usage
var mean = require('stats-mean');
var data = [1, 10, 100, 45, -4, 0.9, -16];
mean.calc(data); // → 19.5
API
calc(data)
data
Type: array
The data to be analysed; an array of numbers.
License
MIT © Michał Jezierski