@Test public void testTest() { logger.info("test"); DataTable2D dataTable = new DataTable2D(); dataTable.put2d(0, 0, 13); dataTable.put2d(0, 1, 8); dataTable.put2d(0, 2, 10); dataTable.put2d(0, 3, 3); dataTable.put2d(1, 0, 20); dataTable.put2d(1, 1, 23); dataTable.put2d(1, 2, 27); dataTable.put2d(1, 3, 18); dataTable.put2d(2, 0, 11); dataTable.put2d(2, 1, 12); dataTable.put2d(2, 2, 12); dataTable.put2d(2, 3, 21); double aLevel = 0.05; boolean expResult = true; boolean result = Chisquare.test(dataTable, aLevel); assertEquals(expResult, result); }
public static boolean test(DataTable2D dataTable, double aLevel) { double pvalue = getPvalue(dataTable); boolean rejectH0=false; if(pvalue<=aLevel) { rejectH0=true; } return rejectH0; }
Chisquare { public static boolean test(DataTable2D dataTable, double aLevel) { double pvalue = getPvalue(dataTable); boolean rejectH0=false; if(pvalue<=aLevel) { rejectH0=true; } return rejectH0; } }
Chisquare { public static boolean test(DataTable2D dataTable, double aLevel) { double pvalue = getPvalue(dataTable); boolean rejectH0=false; if(pvalue<=aLevel) { rejectH0=true; } return rejectH0; }  }
Chisquare { public static boolean test(DataTable2D dataTable, double aLevel) { double pvalue = getPvalue(dataTable); boolean rejectH0=false; if(pvalue<=aLevel) { rejectH0=true; } return rejectH0; }  static AssociativeArray getScore(DataTable2D dataTable); static double getScoreValue(DataTable2D dataTable); static double getPvalue(DataTable2D dataTable); static boolean test(DataTable2D dataTable, double aLevel); }
Chisquare { public static boolean test(DataTable2D dataTable, double aLevel) { double pvalue = getPvalue(dataTable); boolean rejectH0=false; if(pvalue<=aLevel) { rejectH0=true; } return rejectH0; }  static AssociativeArray getScore(DataTable2D dataTable); static double getScoreValue(DataTable2D dataTable); static double getPvalue(DataTable2D dataTable); static boolean test(DataTable2D dataTable, double aLevel);  }