|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.statcato.statistics.SpecialFunctions
public class SpecialFunctions
A class of special functions that are used in calculating probability distributions. Based on Numerical Reciples in C: The Art of Scientific Computing (1992) http://www.nr.com
Constructor Summary | |
---|---|
SpecialFunctions()
|
Method Summary | |
---|---|
static double |
beta(double z,
double w)
Returns the beta function evaluated at (z,w). |
static double |
betacf(double a,
double b,
double x)
Used by betai: Evaluates continued fraction for incomplete beta function by modified Lentz's method. |
static double |
betai(double a,
double b,
double x)
Returns the incomplete beta function Ix(a, b). |
static double |
binomialCoefficient(int n,
int k)
Returns the bionomial coefficient (n k) as a floating-point number. |
static double |
cumBinomial(int n,
int k,
double p)
Returns the cumulative binomial probability given n, k, and p, the probability of less than k successes occurring in n trials if a success occurs with probability p per trial |
static double |
cumChiSquare(double chi2,
double v1)
|
static double |
cumF(double F,
double v1,
double v2)
|
static double |
cumNorm(double z)
|
static double |
cumT(double t,
double v1)
|
static double |
erff(double x)
Returns the error function erf(x). |
static double |
erffc(double x)
Returns the complementary error function erfc(x). |
static double |
factln(int n)
Returns the natural logarithm of the factorial of a number: ln(n!). |
static double |
factrl(int n)
Returns the factorial of an integer. |
static double |
gammln(double xx)
Returns the value ln[ gamma(xx)] for xx > 0. |
static double |
gammp(double a,
double x)
Returns the incomplete gamma function P(a, x). |
static double |
gammq(double a,
double x)
Returns the incomplete gamm function Q(a, x) = 1 - P(a, x) |
static void |
gcf(double a,
double x)
Computes the incomplete gamma function Q(a; x) evaluated by its continued fraction representation as gammcf. |
static void |
gser(double a,
double x)
Computes the incomplete gamma function P(a, x) evaluated by its series representation and stores in global variable gamser. |
static void |
nrerror(java.lang.String s)
|
static double |
sign(double a,
double b)
Returns the magnitude of a times the sign of b |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpecialFunctions()
Method Detail |
---|
public static void nrerror(java.lang.String s)
public static double gammln(double xx)
xx
- a number
public static double factrl(int n)
n
-
public static double factln(int n)
n
-
public static double binomialCoefficient(int n, int k)
n
- k
-
public static double beta(double z, double w)
z
- w
-
public static double gammp(double a, double x)
a
- x
-
public static double gammq(double a, double x)
a
- x
-
public static void gser(double a, double x)
a
- x
- public static void gcf(double a, double x)
a
- x
- public static double erff(double x)
x
-
public static double erffc(double x)
x
-
public static double betai(double a, double b, double x)
a
- b
- x
-
public static double betacf(double a, double b, double x)
a
- b
- x
-
public static double cumT(double t, double v1)
public static double cumF(double F, double v1, double v2)
public static double cumNorm(double z)
public static double cumChiSquare(double chi2, double v1)
public static double cumBinomial(int n, int k, double p)
n
- the number of trialsk
- the number of successesp
- the probability of success
public static double sign(double a, double b)
a
- b
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |