https://github.com/doowb/array-std
Calculate the standard deviation of an array of numbers.
https://github.com/doowb/array-std
Last synced: 10 months ago
JSON representation
Calculate the standard deviation of an array of numbers.
- Host: GitHub
- URL: https://github.com/doowb/array-std
- Owner: doowb
- License: mit
- Created: 2015-09-23T14:09:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-16T02:54:28.000Z (about 10 years ago)
- Last Synced: 2025-02-26T19:51:46.971Z (11 months ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# array-std [](http://badge.fury.io/js/array-std) [](https://travis-ci.org/doowb/array-std)
> Calculate the standard deviation of an array of numbers.
Install with [npm](https://www.npmjs.com/)
```sh
$ npm i array-std --save
```
## Usage
```js
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](https://www.npmjs.com/package/arr-map): Faster, node.js focused alternative to JavaScript's native array map. | [homepage](https://github.com/jonschlinkert/arr-map)
* [array-avg](https://www.npmjs.com/package/array-avg): Calculate the average of an array of numbers. | [homepage](https://github.com/doowb/array-avg)
* [array-sum](https://www.npmjs.com/package/array-sum): Add up all of the numbers in an array of numbers. Works when non-numbers are… [more](https://www.npmjs.com/package/array-sum) | [homepage](https://github.com/jonschlinkert/array-sum)
## Running tests
Install dev dependencies:
```sh
$ npm i -d && npm test
```
## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/doowb/array-std/issues/new).
## Author
**Brian Woodward**
+ [github/doowb](https://github.com/doowb)
+ [twitter/doowb](http://twitter.com/doowb)
## License
Copyright © 2015 Brian Woodward
Released under the MIT license.
***
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on September 23, 2015._