Online descriptive statistics algorithms.
npm install stats-online

"Online" algorithms are algorithms can process input piece by piece without needing to know the size of the entire set. This is a collection of online stats algorithms for calculating standard deviation, variance, mean, and a minimum sample size using Student's T-Distribution to identify minimum sample sizes.
Install with npm by using:npm install stats-online
``javascript
var stats = require('stats-online');
// calculating the average online
var foo = new stats.incrementer();
for (var i = 0; i < 10; i++){
foo.push(i);
console.log(foo.mean());
}
``$3
javascript `
var stats = require('stats-online');
// calculating the variance online
var foo = new stats.incrementer();
for (var i = 0; i < 10; i++){
foo.push(i);
console.log(foo.variance());
}
javascript
var stats = require('stats-online');// calculating the standard deviation online
var foo = new stats.incrementer();
for (var i = 0; i < 10; i++){
foo.push(i);
console.log(foo.standardDeviation());
}
`$3
`javascript
var stats = require('stats-online');
// calculating the minimum sample size online
var foo = new stats.incrementer();
for (var i = 0; i < 10; i++){
foo.push(i);
foo.push(i);
foo.push(i);
console.log(foo.minimumSample());
console.log(foo.sufficientSampleSize());
}
``