|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.rsl.konrad.utils.StatisticsUtil
public abstract class StatisticsUtil
Constructor Summary | |
---|---|
StatisticsUtil()
|
Method Summary | |
---|---|
static double |
logfactorial(int k)
Computes ln(k!) using the Stirling approximation. |
static void |
main(java.lang.String[] args)
|
static int |
poissonRandomNumber(double lambda)
Generates a Poisson distributed random number. |
static int |
poissonRandomNumberBig(double lambda)
Generates a Poisson distributed random number. |
static int |
poissonRandomNumberSmall(double lambda)
Generates a Poisson distributed random number. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatisticsUtil()
Method Detail |
---|
public static int poissonRandomNumber(double lambda)
lambda
-
poissonRandomNumberSmall(double)
,
poissonRandomNumberBig(double)
public static int poissonRandomNumberSmall(double lambda)
lambda
-
public static double logfactorial(int k)
k
- the k
public static int poissonRandomNumberBig(double lambda)
lambda
-
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |