Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Array standard deviation utility σ

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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

Something went wrong with that request. Please try again.