atlas-mean

1.0.1 • Public • Published

atlas-mean

Calculates the expectation value of a set of data points.

Travis


install

npm install --save atlas-mean

why

Breaking up atlas-dataset into standalone functions. This module computes the mean value over an array of numbers:

mean(V) = 1/|V| * sum[i=1 -> |V|](v_i)

examples

const mean = require("atlas-mean")
console.log(mean([1,2,3,4,5,6,7,8,9,10]))
// 5.5

Package Sidebar

Install

npm i atlas-mean

Weekly Downloads

0

Version

1.0.1

License

Apache-2.0

Unpacked Size

2.64 kB

Total Files

6

Last publish

Collaborators

  • atlassubbed