Array standard deviation utility σ
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
History.md
Makefile
Readme.md
component.json
example.js
index.js

Readme.md

standard-deviation

standard deviation utility

Installation

$ component install component/standard-deviation

API

sd(array)

Return the standard deviation of array:

sd([1,5,6,1,2,0])

sd(array, fn)

standard deviation of array with callback fn(val, i):

var age = sd(users, function(u){ return u.age })

sd(array, string)

standard deviation of array with the given property string:

var age = sd(users, 'age')

License

MIT