|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.metaqtl.numrec.NumericalUtilities
public final class NumericalUtilities
Class Description Here
Nested Class Summary | |
---|---|
static interface |
NumericalUtilities.Function
|
static interface |
NumericalUtilities.NRFunction
|
Field Summary | |
---|---|
static double[] |
GAMCOF
|
Constructor Summary | |
---|---|
NumericalUtilities()
|
Method Summary | |
---|---|
static double |
beta(double z,
double w)
Returns the beta function I(a,b) |
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 |
ci2sd(double ci)
|
static double |
dfridr(NumericalUtilities.Function f,
double x,
double h)
Returns the derivative of a function func at a point x by Ridders' method of polynomial extrapolation. |
static double |
DMAX(double a,
double b)
Returns the max between a and b |
static void |
DSWAP(double[] a,
int i,
int j)
Swaps elements i and j in a. |
static double |
gammln(double xx)
|
static double |
gammp(double a,
double x)
|
static double |
gauss(double x)
This routine returns the value at x of the normal centered gaussian density. |
static double[] |
gcf(double a,
double x)
|
static double[] |
gser(double a,
double x)
|
static int |
IMIN(int a,
int b)
Returns the min between a and b |
static void |
indexx(int n,
double[] arrin,
int[] indx)
Sort the given array of double arrin[1..n] without destroying it and returns the sorted indices of the array elements into indx[1..n]. |
static void |
ISWAP(int[] a,
int i,
int j)
Swaps elements i and j in a. |
static double |
PYTHAG(double a,
double b)
Computes sqrt(a^2+b^2) |
static double |
rtsafe(NumericalUtilities.NRFunction funcd,
double x1,
double x2,
double xacc)
|
static double |
sd2ci(double sd)
|
static double |
SIGN(double a,
double b)
Returns abs(a) if b > 0, -abs(a) otherwise. |
static double |
SQR(double a)
Returns a^2 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static double[] GAMCOF
Constructor Detail |
---|
public NumericalUtilities()
Method Detail |
---|
public static double SIGN(double a, double b)
a
- b
-
public static double DMAX(double a, double b)
a
and b
a
- b
-
public static int IMIN(int a, int b)
a
and b
a
- b
-
public static double PYTHAG(double a, double b)
a
- b
-
public static double SQR(double a)
a
-
public static double gauss(double x)
public static double sd2ci(double sd)
sd
-
public static double ci2sd(double ci)
ci
-
public static double gammln(double xx)
public static double gammp(double a, double x)
public static double[] gcf(double a, double x)
public static double[] gser(double a, double x)
public static double betacf(double a, double b, double x)
a
- b
- x
-
public static double betai(double a, double b, double x)
a
- b
- x
-
public static double beta(double z, double w)
z
- w
-
public static void indexx(int n, double[] arrin, int[] indx)
n
- the array sizearrin
- indx
- public static double rtsafe(NumericalUtilities.NRFunction funcd, double x1, double x2, double xacc)
function
- x1
- x2
- xacc
-
public static double dfridr(NumericalUtilities.Function f, double x, double h)
public static void ISWAP(int[] a, int i, int j)
a
- i
- j
- public static void DSWAP(double[] a, int i, int j)
a
- i
- j
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |