ezstats
v0.1.0
Published
library of statistics functions
Downloads
5
Readme
ezstats
Install
npm install --save ezstats
Functions
var ezstats = require('ezstats');
var dataset = getData().from().somewhere();
// get the mean value from a set of numbers
var mean = ezstats.mean(dataset);
// get standard deviation of a dataset
var standardDeviation = ezstats.standardDeviation(dataset);
// get variance of a dataset
var variance = ezstats.variance(dataset);
// get z-scores from a dataset
var zScores = ezstats.zScores(dataset);
Note: The data format for the zScores function is the following:
[ { value: initialValue, z: zScoreForTheValue } ]