|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectweka.core.SpecialFunctions
public final class SpecialFunctions
Class implementing some mathematical functions.
| Constructor Summary | |
|---|---|
SpecialFunctions()
|
|
| Method Summary | |
|---|---|
static double |
lnFactorial(double x)
Returns natural logarithm of factorial using gamma function. |
static double |
lnGamma(double x)
Returns natural logarithm of gamma function. |
static double |
log2Binomial(double a,
double b)
Returns base 2 logarithm of binomial coefficient using gamma function. |
static double |
log2Multinomial(double a,
double[] bs)
Returns base 2 logarithm of multinomial using gamma function. |
static void |
main(java.lang.String[] ops)
Main method for testing this class. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpecialFunctions()
| Method Detail |
|---|
public static double lnFactorial(double x)
x - the value
public static double lnGamma(double x)
x - the value
public static double log2Binomial(double a,
double b)
throws java.lang.ArithmeticException
a - upper part of binomial coefficientb - lower part
java.lang.ArithmeticException
public static double log2Multinomial(double a,
double[] bs)
throws java.lang.ArithmeticException
a - upper part of multinomial coefficientbs - lower part
java.lang.ArithmeticExceptionpublic static void main(java.lang.String[] ops)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||