|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmath.numerics.Factorials
public class Factorials
| Method Summary | |
|---|---|
static double |
factorial(int n)
Calculates the factorial. |
static double |
gammaln(double x)
Calculates the logarithm of the Gamma function using the Lanczos approximation. |
static double |
logChoose(int n,
int k)
Returns the logarithm of the binomial coefficient (n, k) In other notation: log (n choose k) (n choose k) represents the number of ways of picking k unordered outcomes from n possibilities |
static double |
logFactorial(int n)
Returns log (n!) = log (n * (n-1) * ... |
static void |
main(java.lang.String[] args)
|
static double |
poisson(double nu,
int n)
Returns the poisson distribution (nu^n e^nu / n!) |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double gammaln(double x)
x - double
public static double factorial(int n)
n - int
public static double logFactorial(int n)
n -
public static double poisson(double nu,
int n)
nu - n -
public static double logChoose(int n,
int k)
n - k -
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||