1.0.3 • Published 10 years ago

monoid-std-deviation v1.0.3

Weekly downloads
13
License
-
Repository
github
Last release
10 years ago

Monoid Standard Deviation

Build Status

Fantasy Land Compliant!

An implementation of the population standard deviation monoid in javascript

Example

var StdDeviation = require("monoid-std-deviation");

var list = [
    new StdDeviation(52),
    new StdDeviation(72),
    new StdDeviation(42),
    new StdDeviation(63),
    new StdDeviation(65),
    new StdDeviation(93)
];

var result = list.reduce(function(a, b) { return a.concat(b); });

console.log(result.value());
//prints 15.98697386415995
1.0.3

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago