|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectConstants
BetaGamma
public class BetaGamma
Gamma and Beta functions.
Implementation:
Note this class is taken from cern.jet.stat.Gamma, but it's renamed to BetaGamma to avoid naming conflict -- Roby Joehanes
Field Summary |
---|
Fields inherited from class Constants |
---|
big, biginv, LOGPI, MACHEP, MAXGAM, MAXLOG, MINLOG, SQRTH, SQTPI |
Constructor Summary | |
---|---|
protected |
BetaGamma()
Makes this class non instantiable, but still let's others inherit from it. |
Method Summary | |
---|---|
static double |
beta(double a,
double b)
Returns the beta function of the arguments. |
static double |
gamma(double x)
Returns the Gamma function of the argument. |
static double |
incompleteBeta(double aa,
double bb,
double xx)
Returns the Incomplete Beta Function evaluated from zero to xx; formerly named ibeta. |
(package private) static double |
incompleteBetaFraction1(double a,
double b,
double x)
Continued fraction expansion #1 for incomplete beta integral; formerly named incbcf. |
(package private) static double |
incompleteBetaFraction2(double a,
double b,
double x)
Continued fraction expansion #2 for incomplete beta integral; formerly named incbd. |
static double |
incompleteGamma(double a,
double x)
Returns the Incomplete Gamma function; formerly named igamma. |
static double |
incompleteGammaComplement(double a,
double x)
Returns the Complemented Incomplete Gamma function; formerly named igamc. |
static double |
logGamma(double x)
Returns the natural logarithm of the gamma function; formerly named lgamma. |
(package private) static double |
powerSeries(double a,
double b,
double x)
Power series for incomplete beta integral; formerly named pseries. |
(package private) static double |
stirlingFormula(double x)
Returns the Gamma function computed by Stirling's formula; formerly named stirf. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BetaGamma()
Method Detail |
---|
public static double beta(double a, double b) throws java.lang.ArithmeticException
- - | (a) | (b) beta( a, b ) = -----------. - | (a+b)
java.lang.ArithmeticException
public static double gamma(double x) throws java.lang.ArithmeticException
java.lang.ArithmeticException
public static double incompleteBeta(double aa, double bb, double xx) throws java.lang.ArithmeticException
aa
- the alpha parameter of the beta distribution.bb
- the beta parameter of the beta distribution.xx
- the integration end point.
java.lang.ArithmeticException
static double incompleteBetaFraction1(double a, double b, double x) throws java.lang.ArithmeticException
java.lang.ArithmeticException
static double incompleteBetaFraction2(double a, double b, double x) throws java.lang.ArithmeticException
java.lang.ArithmeticException
public static double incompleteGamma(double a, double x) throws java.lang.ArithmeticException
a
- the parameter of the gamma distribution.x
- the integration end point.
java.lang.ArithmeticException
public static double incompleteGammaComplement(double a, double x) throws java.lang.ArithmeticException
a
- the parameter of the gamma distribution.x
- the integration start point.
java.lang.ArithmeticException
public static double logGamma(double x) throws java.lang.ArithmeticException
java.lang.ArithmeticException
static double powerSeries(double a, double b, double x) throws java.lang.ArithmeticException
java.lang.ArithmeticException
static double stirlingFormula(double x) throws java.lang.ArithmeticException
java.lang.ArithmeticException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |