JSPM

stats-mean

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 20
  • Score
    100M100P100Q54448F
  • License MIT

Calculate mean of data

Package Exports

  • stats-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 (stats-mean) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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