Evaluates the gamma probability density function.
Namespace: Imsl.StatAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax public static double Gamma(
double x,
double a,
double b
)
Public Shared Function Gamma (
x As Double,
a As Double,
b As Double
) As Double
public:
static double Gamma(
double x,
double a,
double b
)
static member Gamma :
x : float *
a : float *
b : float -> float
Parameters
- x
- Type: SystemDouble
A double scalar value representing the
argument at which the function is to be evaluated.
- a
- Type: SystemDouble
A double scalar value representing the
shape parameter. This must be positive.
- b
- Type: SystemDouble
A double scalar value representing the
scale parameter. This must be positive.
Return Value
Type:
DoubleA
double scalar value, the probability density function at
x.
Remarks
The probability density
function of the gamma distribution is
where
a is the shape parameter and
b is the scale parameter.
See Also