Miss any of our Open RFC calls?Watch the recordings here! »

stats-mean

1.0.0 • Public • Published

Mean Build Status

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

Install

npm i stats-mean

DownloadsWeekly Downloads

6

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar