@Override public void clear() { data.clear(); }
public void initializeStats() { correct = 0; n = 0; estimates.clear(); }
public void initializeStats() { trueIndel = 0; predictedIndel = 0; trueOrPredictedIndel = 0; tp = 0; fp = 0; fn = 0; correct = 0; estimates.clear(); }
@Override public void clear() { data.clear(); }
DoubleList estimates() { estimates.clear(); for (SegmentStatsAccumulator acc : accumulators) { estimates.addAll(acc.estimates()); } return estimates; } }
@Override DoubleList estimates() { double accuracy = ((double) correct) / ((double) n); estimates.clear(); estimates.add(accuracy); estimates.add(correct); estimates.add(n); return estimates; } }
@Override DoubleList estimates() { double accuracy = ((double) correct) / ((double) trueOrPredictedIndel); double f1=2.0*tp/(2.0*tp+fp+fn); estimates.clear(); estimates.add(accuracy); estimates.add(correct); estimates.add(predictedIndel); estimates.add(trueIndel); estimates.add(tp); estimates.add(fp); estimates.add(fn); estimates.add(f1); return estimates; } }