@Test public void testTest() { logger.info("test"); TransposeDataCollection transposeDataCollection = new TransposeDataCollection(); transposeDataCollection.put("group1", new FlatDataCollection(Arrays.asList(new Object[]{32,26.5,28.5,30,26}))); transposeDataCollection.put("group2", new FlatDataCollection(Arrays.asList(new Object[]{18.5,16,19.5,20}))); boolean is_twoTailed = true; double aLevel = 0.05; boolean expResult = true; boolean result = MannWhitney.test(transposeDataCollection, is_twoTailed, aLevel); assertEquals(expResult, result); }
public static boolean test(TransposeDataCollection transposeDataCollection, boolean is_twoTailed, double aLevel) { double pvalue= getPvalue(transposeDataCollection); boolean rejectH0=false; double a=aLevel; if(is_twoTailed) { a=aLevel/2; } if(pvalue<=a || pvalue>=(1-a)) { rejectH0=true; } return rejectH0; }
MannWhitney { public static boolean test(TransposeDataCollection transposeDataCollection, boolean is_twoTailed, double aLevel) { double pvalue= getPvalue(transposeDataCollection); boolean rejectH0=false; double a=aLevel; if(is_twoTailed) { a=aLevel/2; } if(pvalue<=a || pvalue>=(1-a)) { rejectH0=true; } return rejectH0; } }
MannWhitney { public static boolean test(TransposeDataCollection transposeDataCollection, boolean is_twoTailed, double aLevel) { double pvalue= getPvalue(transposeDataCollection); boolean rejectH0=false; double a=aLevel; if(is_twoTailed) { a=aLevel/2; } if(pvalue<=a || pvalue>=(1-a)) { rejectH0=true; } return rejectH0; }  }
MannWhitney { public static boolean test(TransposeDataCollection transposeDataCollection, boolean is_twoTailed, double aLevel) { double pvalue= getPvalue(transposeDataCollection); boolean rejectH0=false; double a=aLevel; if(is_twoTailed) { a=aLevel/2; } if(pvalue<=a || pvalue>=(1-a)) { rejectH0=true; } return rejectH0; }  static double getPvalue(TransposeDataCollection transposeDataCollection); static boolean test(TransposeDataCollection transposeDataCollection, boolean is_twoTailed, double aLevel); }
MannWhitney { public static boolean test(TransposeDataCollection transposeDataCollection, boolean is_twoTailed, double aLevel) { double pvalue= getPvalue(transposeDataCollection); boolean rejectH0=false; double a=aLevel; if(is_twoTailed) { a=aLevel/2; } if(pvalue<=a || pvalue>=(1-a)) { rejectH0=true; } return rejectH0; }  static double getPvalue(TransposeDataCollection transposeDataCollection); static boolean test(TransposeDataCollection transposeDataCollection, boolean is_twoTailed, double aLevel);  }