0.1.1 • Published 9 years ago

gsl-cdf v0.1.1

Weekly downloads
1
License
GPL-3
Repository
github
Last release
9 years ago

NPM version

gsl-cdf-js

probability distributions for JS via GNU Scientific Library

Installation

Via npm:

npm install gsl-cdf

To use it inside node:

var cdf = require("gsl-cdf");

API

The prefix gsl_cdf_ was removed from the original function definitions. For example, while in C you would call gsl_cdf_exponential_P(x, mu) to evaluate the cumulative distribution function of an exponentially distributed random variable with mean mu at value x , the function is exported simply as exponential_P(x, mu).

Example:

cdf.exponential_P(3, 2);

Output:

0.7768698398515702