|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpal.statistics.FisherExact
public class FisherExact
This does a one tail fisher exact test. It uses an array of factorials initialized at the beginning to provide speed. There could be better ways to do this.
| Constructor Summary | |
|---|---|
FisherExact(int maxSize)
constructor for FisherExact table |
|
| Method Summary | |
|---|---|
double |
getCumlativeP(int a,
int b,
int c,
int d)
calculates the one tail P-value for the Fisher Exact test This |
double |
getP(int a,
int b,
int c,
int d)
calculates the P-value for this specific state |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FisherExact(int maxSize)
maxSize - is the maximum sum that will be encountered by the table (a+b+c+d)| Method Detail |
|---|
public final double getP(int a,
int b,
int c,
int d)
a,b,c,d - are the four cells in a 2x2 matrix
public final double getCumlativeP(int a,
int b,
int c,
int d)
a,b,c,d - are the four cells in a 2x2 matrix
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||