Miss any of our Open RFC calls?Watch the recordings here! »

s-deviation

2.0.3 • Public • Published

Build Status Coverage

s-deviation

Math utility to calculate standard deviations, especially for fintech.

Install

$ npm install s-deviation

Usage

import sd from 's-deviation'
 
sd([1, 2, 4, 8], 2)         // [<1 empty item>, 0.5, 1, 2]
 
sd([1, 2, 3, 4, 5, 6], 4)
// [
//   <3 empty items>,
//   1.118033988749895,
//   1.118033988749895,
//   1.118033988749895
// ]

sd(datum, size)

  • datum Array.<Number> the collection of data
  • size Number the sample size of

Returns Array.<Number> the array of standard deviations.

Related Modules

License

MIT

Install

npm i s-deviation

DownloadsWeekly Downloads

688

Version

2.0.3

License

MIT

Last publish

Collaborators

  • avatar