README
Calculate the standard deviation of an array of numbers.
Install with npm
$ npm i array-std --save
Usage
var std = require('array-std');
std([1, 2, 3, 4, 5, 6, 7, 8, 9, 25]);
//=> 6.48074069840786
std(['1', 2, '3', 4, 5, '6', 7, 8, 9, 25]);
//=> 6.48074069840786
std(['1', 'foo', 2, '3', 4, 5, '6', 7, {}, 8, 9, 25]);
//=> 6.011177859559577
Related projects
- arr-map: Faster, node.js focused alternative to JavaScript's native array map. | homepage
- array-avg: Calculate the average of an array of numbers. | homepage
- array-sum: Add up all of the numbers in an array of numbers. Works when non-numbers are… more | homepage
Running tests
Install dev dependencies:
$ npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Author
Brian Woodward
License
Copyright © 2015 Brian Woodward Released under the MIT license.
This file was generated by verb-cli on September 23, 2015.