JSPM

@hugov/stats

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q25829F
  • License MIT

average, standard deviation, variance, covariance and correlation of data sets

Package Exports

  • @hugov/stats

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hugov/stats) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@hugov/stats

average, standard deviation, variance, covariance and correlation of data sets

ExampleLicense

Example

import stats from '@hugov/stats'
const data = { a:[1,2,3], b:[0,1,2] },
      info = stats(data),
      ave_ = info.ave(),        // { a:2, b:1 }
      aveA = info.ave('a'),     // 2
      dev_ = info.dev(),        // { a:1, b:1 }
      devA = info.dev('a'),     // 1
      var_ = info.var(),        // { a:1, b:1 }
      varA = info.var('a'),     // 1
      cov_ = info.cov(),        // {a:{a:1, b:1}, b:{a:1, b:1}}
        covA = info.cov('a'),     // {a:1, b:1}
        cvBA = info.cov('b', 'a'),// 1
        cor_ = info.cor(),        // {a:{a:1, b:1}, b:{a:1, b:1}}
        corA = info.cor('a'),     // {a:1, b:1}
        crBA = info.cor('b', 'a') // 1

License

Released under the MIT License