atlas-stddev
Calculates the standard deviation of a set of data points.
install
npm install --save atlas-stddev
why
Breaking up atlas-dataset into standalone functions. This module calculates the standard deviation of an array of numbers:
examples
from an array of numbers
const stddev = console// 1.4142135623730951
from pre-computed mean and mean square
...const mean = 0;const rmsSquared = 2;console // fast// 1.4142135623730951
caveats
The caller is expected to sanitize input. Any invalid input will not work; the only valid signatures are: