statistical~ gamma

Returns the Gamma function value.

Constructor

new gamma(number) → {number}

Parameters:
NameTypeDescription
numbernumber

Returns a number.

Returns:

the Gamma function value or an error if the arguments are incorrect.

Type: 
number

Methods

(static) dist(value, alpha, beta, cumulative) → {number}

Returns the gamma distribution.

Parameters:
NameTypeDescription
valuenumber

The value at which you want to evaluate the distribution.

alphanumber

A parameter to the distribution.

betanumber

A parameter to the distribution. If beta = 1, GAMMA.DIST returns the standard gamma distribution.

cumulativeboolean

A logical value that determines the form of the function. If cumulative is TRUE, GAMMA.DIST returns the cumulative distribution function; if FALSE, it returns the probability density function.

Returns:

the gamma distribution or an error if the arguments are incorrect.

Type: 
number

(static) inv(probability, alpha, beta) → {number}

Returns the inverse of the gamma cumulative distribution.

Parameters:
NameTypeDescription
probabilitynumber

The probability associated with the gamma distribution.

alphanumber

A parameter to the distribution.

betanumber

A parameter to the distribution. If beta = 1, GAMMA.INV returns the standard gamma distribution.

Returns:

the inverse of the gamma cumulative distribution or an error if the arguments are incorrect.

Type: 
number