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.
Installation
Install with npm
by using:
npm install stats-online
Use
Mean
var stats = ; // calculating the average onlinevar foo = ;for var i = 0; i < 10; i++ foo; console;
Variance
var stats = ;// calculating the variance onlinevar foo = ;for var i = 0; i < 10; i++ foo; console;
Standard Deviation
var stats = ; // calculating the standard deviation onlinevar foo = ;for var i = 0; i < 10; i++ foo; console;
Sample Size
var stats = ;// calculating the minimum sample size onlinevar foo = ;for var i = 0; i < 10; i++ foo; foo; foo; console; console;