JSPM

stats-variance

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

Calculate variance of data

Package Exports

  • stats-variance

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

Readme

Variance Build Status

Calculate variance of data.

Installation

$ npm install stats-variance

Usage

var variance = require('stats-variance');

var data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];

variance.calc(data); // → 8.25

API

calc(data)

data

Type: array

The data to be analysed; an array of numbers considered as the entire population. The following formula is used for calculation http://en.wikipedia.org/wiki/Variance#Population_variance.

License

MIT © Michał Jezierski