|
TPCCLIB
|
Regularized gamma function. More...
#include "tpcclibConfig.h"#include <stdio.h>#include <stdlib.h>#include <math.h>#include <float.h>#include <time.h>#include <string.h>#include "tpcextensions.h"#include "tpcfunc.h"Go to the source code of this file.
Functions | |
| double | igam (double a, double x) |
| double | igamc (double a, double x) |
Regularized gamma function.
Definition in file rgamma.c.
| double igam | ( | double | a, |
| double | x ) |
Cumulative gamma distribution, or Regularized gamma function, more specifically, lower incomplete gamma function divided by gamma function.
Standard gamma distribution is assumed (Beta=1). f(a,x) = (1/Gamma(a)) * Integral(0,x)(e^-t * t^(a-1))dt
| a | Shape parameter alpha; must be > 0. |
| x | Integral from 0 to x; must be >= 0. |
Definition at line 29 of file rgamma.c.
| double igamc | ( | double | a, |
| double | x ) |
Regularized gamma function, more specifically, upper incomplete gamma function divided by gamma function.
f(a,x) = (1/Gamma(a)) * Integral(x,Inf)(e^-t * t^(a-1))dt Standard gamma distribution is assumed (Beta=1).
| a | Shape parameter alpha; must be > 0. |
| x | Integral from x to infinity; must be >= 0 |
Definition at line 70 of file rgamma.c.
Referenced by igam().