|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectnumRecipes.SpecialFunctions
public class SpecialFunctions
Utilities for Spectial Functions. Some of them are based on the Numerical Recipes Library
Constructor Summary | |
---|---|
SpecialFunctions()
|
Method Summary | |
---|---|
static double |
alogGamma(double xx)
log(Gamma(a)) function |
static double |
binominal(double mu,
long n,
long m)
Binominal distribution nCm mu^m(1-mu)^(n-m) |
static double |
gammaP(double a,
double x)
P(a x)= gamma(a,x)/Gamma(a) from 0 to x. |
static double |
gammaQ(double a,
double x)
Q(a x)= Gamma(a,x)/Gamma(a) from 0 to x. |
static double |
gauss(double mu,
double sigma,
double x)
Gaussian function |
double |
getFunction(int functionIndex,
double[] parameters,
double x)
Method for interface |
static double |
incompleteGammaDowntoX(double a,
double x)
Gamma(a,x)/Gamma(a) from x to infinity |
static double |
incompleteGammaUptoX(double a,
double x)
gamma(a,x)/Gamma(a) from 0 to x |
static double |
integrateGauss(double mu,
double sigma,
double lowerBound,
double upperBound)
Integration of the Gaussian function. |
static double |
poisson(double mu,
long m)
Poisson distribution function |
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 double alogGamma(double xx)
public static double incompleteGammaUptoX(double a, double x)
public static double incompleteGammaDowntoX(double a, double x)
public static double gammaP(double a, double x)
public static double gammaQ(double a, double x)
public static double gauss(double mu, double sigma, double x)
public static double poisson(double mu, long m)
public static double binominal(double mu, long n, long m)
public double getFunction(int functionIndex, double[] parameters, double x)
Method for interface. Interface the special functions given here to the utility routiner such as the Romberg Integration code that is desinged for a genereal function in form of Func(x). FunctionIndex 1 Gaussian gauss(mu, sigma, double x) parameters[0]=mu parameters[1]=sigma
getFunction
in interface Function
public static double integrateGauss(double mu, double sigma, double lowerBound, double upperBound)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |