public void merge(Results other) { foreach (Result r in other.getResultsList()) { this.addResult(r); } }
public void updateBecauseOfThreshChange() { this.innerUpdate(results.getResultsList()); //not work yet }
public GraphPane createGenuineImpostorGraph(BIO.Framework.Core.Evaluation.Results.Results results) { //TODO FIXME string method = results.getResultsList().First().getMethods().First(); Statistics s = new Statistics(method, results); List <double> genuine = new List <double>(); List <double> impostor = new List <double>(); for (int x = 0; x <= 100; x++) { genuine.Add(0); impostor.Add(0); } double max = s.GlobalExtremes.max; double min = s.GlobalExtremes.min; int step = 2; foreach (Result r in results.getResultsList()) { double value = r.getMatchingScore(method).Score; Int32 bin = (Int32)(((value - min) * 100.0 / (max - min))); if (bin < 0) { bin = 0; } if (bin >= 100) { bin = 99; } //round to 50 bins bin = bin / step * step; if (r.isGenuine()) { genuine[bin]++; } else { impostor[bin]++; } } GraphPane myPane = new GraphPane(new RectangleF(0, 0, 1024, 768), "Genuine Impostor", "score", "count"); PointPairList glist = new PointPairList(); PointPairList ilist = new PointPairList(); for (int x = 0; x <= 100; x += step) { glist.Add(x, genuine[x]); ilist.Add(x, impostor[x]); } LineItem myCurve1 = myPane.AddCurve("genuine", glist, Color.Green, SymbolType.Diamond); LineItem myCurve2 = myPane.AddCurve("impostor", ilist, Color.Red, SymbolType.Diamond); return(myPane); }