class 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));
    }
  }

}