Skip to content

characteristic functions for the chi-squared distribution

License

Notifications You must be signed in to change notification settings

LarryBattleWork/chi-squared.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chi-squared

Characteristic functions for the chi-squared distribution.

build status

Example

var chi = require('chi-squared')
chi.pdf(0.5, 1) // 0.4393912894677223
chi.pdf(2.3, 1.4) // 0.11695769277348175
chi.cdf(2, 2) // 0.6321204474030797

Methods

chi.pdf(x, k)

Compute the probability density function for the parameter x under k degrees of freedom.

chi.cdf(x, k)

Compute the cumulative density function. same parameters as above.

Install

With npm do:

npm install chi-squared

Import

var chi = require('chi-squared')

Npm tasks

  • Run tests: npm test
  • Run lint: npm run lint

License

MIT

About

characteristic functions for the chi-squared distribution

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%