public final class SpecialFunctions extends java.lang.Object implements RevisionHandler
Constructor and Description |
---|
SpecialFunctions() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRevision()
Returns the revision string.
|
static double |
lnFactorial(double x)
Returns natural logarithm of factorial using 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.
|
public static double lnFactorial(double x)
x
- the valuepublic static double log2Binomial(double a, double b)
a
- upper part of binomial coefficientb
- lower partpublic static double log2Multinomial(double a, double[] bs)
a
- upper part of multinomial coefficientbs
- lower partpublic java.lang.String getRevision()
getRevision
in interface RevisionHandler
public static void main(java.lang.String[] ops)