|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.aavalla.utils.general.Statistics
public class Statistics
This class contains static methods for statistical analysis. The class is thread safe.
Nested Class Summary | |
---|---|
static class |
Statistics.TailedType
|
Constructor Summary | |
---|---|
Statistics()
|
Method Summary | |
---|---|
static void |
emptyFactorialCache()
Empties the factorial cache to free memory. |
static long |
factorial(int n)
Calculates the factorial of parameter. |
static double |
fisherExactTest(int k,
int N,
int m,
int n,
Statistics.TailedType tailed)
Fisher exact test. |
static double |
hyperGeomTest(int k,
int N,
int m,
int n)
Hypergeometric test. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Statistics()
Method Detail |
---|
public static long factorial(int n)
n
- number (>=0) to calculate the factorial from
java.lang.IllegalArgumentException
- if parameter < 0public static double fisherExactTest(int k, int N, int m, int n, Statistics.TailedType tailed)
k
- hits acquiredN
- total number of itemsm
- maximum number of possible hitsn
- number of tests donetailed
- type of tailed test to execute
java.lang.IllegalArgumentException
- if parameter values are illegalpublic static double hyperGeomTest(int k, int N, int m, int n)
k
- hits acquiredN
- total number of itemsm
- maximum number of possible hitsn
- number of tests done
java.lang.IllegalArgumentException
- if parameter values are illegalpublic static void emptyFactorialCache()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |