standard deviation utility
$ component install component/standard-deviation
Return the standard deviation of array
:
sd([1,5,6,1,2,0])
standard deviation of array
with callback fn(val, i)
:
var age = sd(users, function(u){ return u.age })
standard deviation of array
with the given property string
:
var age = sd(users, 'age')
MIT