Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 static int BiggerPrediction(RocRow <T> rocRow0, RocRow <T> rocRow1)
 {
     return(rocRow1.Prediction.CompareTo(rocRow0.Prediction));
 }
Beispiel #4
0
 public void Add(RocRow <T> rocRow)
 {
     Add(rocRow.OtherInfo, rocRow.Label, rocRow.Prediction);
 }