|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjphase.Utils
public class Utils
Constructor Summary | |
---|---|
Utils()
|
Method Summary | |
---|---|
static double |
binomial(int n,
int k)
Binomial coefficient |
static double |
distance(double[] v1,
double[] v2)
Euclidean norm btween given arrays |
static double |
fact(int n)
Factorial function ( n! ). |
static double |
gammaP(double a,
double x)
Incomplete gamma function. |
static double[][] |
initUpperTriangular(int n)
Creates storage for un upper triangular matrix. |
static double |
lnBinomial(int n,
int k)
ln Binomial coefficient. |
static double |
lnFactorial(int n)
Computes the log of Factorial function |
static double |
lnGamma(double xx)
Computes the log of gamma function. |
static double |
lnPermut(int n,
int k)
Computes ln( n!/(n-k)! ) |
static double |
permut(int n,
int k)
Computes n!/(n-k)! |
static double |
pow(double x,
int n)
Power function obtained by multiplying. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static double lnPermut(int n, int k)
n
- k
-
public static double permut(int n, int k)
n
- k
-
public static double lnGamma(double xx)
xx
- value
public static double lnFactorial(int n)
n
-
public static double fact(int n)
n
-
public static double gammaP(double a, double x)
a
- argumentx
- upper limit
public static double binomial(int n, int k)
n
- k
-
public static double lnBinomial(int n, int k)
n
- k
-
public static double pow(double x, int n)
x
- n
-
public static double distance(double[] v1, double[] v2)
v1
- v2
-
public static double[][] initUpperTriangular(int n)
n
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |