calculate mean standard deviation in one pass
calculate mean and standard deviation in one pass.
var Stats = require'statistics'var s = Statssvalue1value2value3console.log'mean:' smean 'stdev:' sstdev> mean: 2 stdev: 0.86
It's possible to output values as you go.
stdev is calculated in one pass,
this has minimal memory commitments so you can take averages of everything.