@enzipeapps/standard-deviation
v1.0.3
Published
Pass comma seprater array value for get standard deviation values
Downloads
5
Maintainers
Readme
Standard Deviation
Get the standard deviation, with sample and population.
Installation
npm install @enzipeapps/standard-deviation --save
Usage
var standardDeviation= require('@enzipeapps/standard-deviation');
For Sample
var arrayValues=[1,2,3];
standardDeviation.sample.s_sd(arrayValues) // 1
standardDeviation.sample.s_vari(arrayValues) // 1
standardDeviation.sample.s_diff(arrayValues) // -1,0,1
standardDeviation.sample.s_diff2(arrayValues) // 1,0,1
standardDeviation.sample.s_sumDiff(arrayValues) // 2
standardDeviation.sample.s_mean(arrayValues) // 2
For Population
var arrayValues=[1,2,3];
standardDeviation.population.p_sd(arrayValues) // 0.816496580927726
standardDeviation.population.p_vari(arrayValues) // 0.6666666666666666
standardDeviation.population.p_diff(arrayValues) // -1,0,1
standardDeviation.population.p_diff2(arrayValues) // 1,0,1
standardDeviation.population.p_sumDiff(arrayValues) // 2
standardDeviation.population.p_mean(arrayValues) // 2
Version History
- 1.0.0 Initial Release
- 1.0.1
- 1.0.2 (Latest Release)