public void Add(T otherInfoWithToStringThatCanContainTabs, bool label, double prediction) { //SpecialFunctions.CheckCondition(0.0 <= prediction && prediction <= 1.0); RocRow <T> rocRow = RocRow <T> .GetInstance(otherInfoWithToStringThatCanContainTabs, label, prediction); RocRowCollection.Add(rocRow); }
internal static RocRow <T> GetInstance(T otherInfo, bool label, double prediction) { RocRow <T> rocRow = new RocRow <T>(); rocRow.OtherInfo = otherInfo; rocRow.Label = label; rocRow.Prediction = prediction; return(rocRow); }
static int BiggerPrediction(RocRow <T> rocRow0, RocRow <T> rocRow1) { return(rocRow1.Prediction.CompareTo(rocRow0.Prediction)); }
public void Add(RocRow <T> rocRow) { Add(rocRow.OtherInfo, rocRow.Label, rocRow.Prediction); }