Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

gamma-distribution

1.0.4 • Public • Published

Gamma-Distribution

A module with the PDF and CDF functions for the gamma distribution. Also has maximum likelihood fitting capabilities. An example: ` var dist = require('gamma-distribution');

var x = 2, k = 1, theta = 3; dist.pdf(x, k, theta); dist.cdf(x, k, theta); dist.fit([1, 2, 2, 2, 2, 3, 3, 4, 6]); // returns an object with k and theta `

install

npm i gamma-distribution

Downloadsweekly downloads

1

version

1.0.4

license

MIT

homepage

github.com

last publish

collaborators

  • avatar