|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnix.affy.main.WilcoxonRankSumTest
Implementation of a Wilcoxon Rank Sum Test. Note, if the number of samples for either the treatment or control group is <10, no test statistics are calculated and the pValue is set to 1, logTPvalue is set to 0, and z to -10.
| Constructor Summary | |
WilcoxonRankSumTest()
|
|
| Method Summary | |
double |
calculateZ()
Only valid when # treatment samples and # control samples >9 each. |
double |
getLogTPvalue()
|
int |
getNumberTreatmentsControls()
|
void |
makeSamples(int[] treatment,
int[] control)
|
void |
rankSamples()
Ranks a sorted array of WilcoxonSamples based on value. |
void |
setTwoTailed(boolean twoTailed)
|
void |
sumRanks()
|
double |
test(int[] treatment,
int[] control)
Returns a -10LogBase10(pValue) if n1 and n2 >9 |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WilcoxonRankSumTest()
| Method Detail |
public double test(int[] treatment,
int[] control)
public double calculateZ()
public void sumRanks()
public void rankSamples()
public void makeSamples(int[] treatment,
int[] control)
public double getLogTPvalue()
public int getNumberTreatmentsControls()
public void setTwoTailed(boolean twoTailed)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||