public class Gamma
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected static double |
AL10 |
|
protected static double |
ALPREC |
|
protected static double |
BOT |
|
protected static int |
BOTEXP |
|
protected static double[] |
C |
|
protected static double[] |
DBDEN |
|
protected static double[] |
DBNUM |
|
protected static double |
DC |
|
protected double |
G |
|
protected double |
GSTAR |
|
protected int |
IFLGST |
|
protected static float |
PREC |
|
protected static double |
TOP |
|
protected static int |
TOPEXP |
Constructor | Description |
---|---|
Gamma() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
calcBoth(double A,
double X) |
|
double |
calcGamma(double a,
double x) |
Return the normalized complementary incomplete gamma function,
(integral from t=x to t=inf of exp(-t)*t^(a-1)) / gamma(a) if a>0
or
(integral from t=x to t=inf of exp(-t)*t^(a-1)) * exp(x)*x^(-a) if a<=0
|
double |
calcGammaStar(double a,
double x) |
Return the normalized incomplete gamma function,
(integral from t=0 to t=x of exp(-t)*t^(a-1)) / x^a if a>0
If a=0 and x=0, gammaStar is indeterminate and an exception is thrown.
|
protected static double |
DLGA(double DX) |
|
double |
getLastGamma() |
Return the normalized complementary incomplete gamma function from the
last calculation.
|
double |
getLastGammaStar() |
Return the normalized incomplete gamma function from the last
calculation.
|
static void |
main(java.lang.String[] args) |
protected static final float PREC
protected static final int TOPEXP
protected static final int BOTEXP
protected static final double AL10
protected static final double ALPREC
protected static final double TOP
protected static final double BOT
protected static final double[] C
protected double G
protected double GSTAR
protected int IFLGST
protected static final double[] DBNUM
protected static final double[] DBDEN
protected static final double DC
public double calcGamma(double a, double x)
public double calcGammaStar(double a, double x)
public double getLastGamma()
public double getLastGammaStar()
protected void calcBoth(double A, double X)
protected static double DLGA(double DX)
public static void main(java.lang.String[] args)