Skip to content

component/standard-deviation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Array standard deviation utility σ

Resources

Stars

Watchers

Forks

Packages

No packages published