@Test void testA() { MultipleTestingCorrection bonf = new Bonferroni(); bonf.adjustPvals(pvallist); double adjustedPValue = pvallist.get(0).getAdjustedPValue(); assertEquals(15*0.0001,adjustedPValue,EPSILON); }
@Override public void adjustPvals(List<? extends PValue> pvals) { int N=pvals.size(); for (PValue item : pvals) { double p_raw= item.getRawPValue(); item.setAdjustedPValue(Math.min(1.0,N*p_raw)); } }
Bonferroni implements MultipleTestingCorrection { @Override public void adjustPvals(List<? extends PValue> pvals) { int N=pvals.size(); for (PValue item : pvals) { double p_raw= item.getRawPValue(); item.setAdjustedPValue(Math.min(1.0,N*p_raw)); } } }
Bonferroni implements MultipleTestingCorrection { @Override public void adjustPvals(List<? extends PValue> pvals) { int N=pvals.size(); for (PValue item : pvals) { double p_raw= item.getRawPValue(); item.setAdjustedPValue(Math.min(1.0,N*p_raw)); } }  }
Bonferroni implements MultipleTestingCorrection { @Override public void adjustPvals(List<? extends PValue> pvals) { int N=pvals.size(); for (PValue item : pvals) { double p_raw= item.getRawPValue(); item.setAdjustedPValue(Math.min(1.0,N*p_raw)); } }  @Override void adjustPvals(List<? extends PValue> pvals); String getName(); }
Bonferroni implements MultipleTestingCorrection { @Override public void adjustPvals(List<? extends PValue> pvals) { int N=pvals.size(); for (PValue item : pvals) { double p_raw= item.getRawPValue(); item.setAdjustedPValue(Math.min(1.0,N*p_raw)); } }  @Override void adjustPvals(List<? extends PValue> pvals); String getName();  }