1.0.0 • Published 11 years ago

standard-deviation v1.0.0

Weekly downloads
156
License
-
Repository
-
Last release
11 years ago

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