|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMaths.Gamma
public class Gamma
Provides methods associated with the gamma distribution. Provides two static functions, one for calculating the inverse chi-squared distribution and one for calculating the rate for different rate categories under a gmma distribution.
Constructor Summary | |
---|---|
Gamma()
|
Method Summary | |
---|---|
static double |
chi2inv(double p,
double v)
Returns the inverse chi-squared distribution. |
static double[] |
rates(double alpha,
int categories)
Returns the rates that should be used for a set number of rate categories and a set value of alpha as per the methodology of Yang 1993 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Gamma()
Method Detail |
---|
public static double[] rates(double alpha, int categories)
alpha
- The alpha valluecategories
- The number of rate categories
public static double chi2inv(double p, double v)
p
- The p-valuev
- The number of degrees of freedom
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |