JSPM

atlas-mean

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q36388F
  • License Apache-2.0

Calculates the expectation value of a set of data points.

Package Exports

  • atlas-mean

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (atlas-mean) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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