public bool IsPhaseOut(SampleData pData) { for (int i = 0; i < classLabel.Count; i++) if (pData._label == classLabel[i]) return true; for (int i = 0; i < predictLabel.Count; i++) if (pData._cid == predictLabel[i]) return true; if (pData._pv > minPv && pData._pv < maxPv) return true; if (classifiedResultType == ClassifiedResult.False) { if (pData._cid != pData._label) return true; } else if (classifiedResultType == ClassifiedResult.True) { if (pData._cid == pData._label) return true; } return false; }
public bool IsQualified(SampleData data) { return !IsPhaseOut(data); }
private static int SortByNameCompare(SampleData obj1, SampleData obj2) { return obj1._name.CompareTo(obj2._name); }
private static int SortByPredictedValue2(SampleData obj2, SampleData obj1) { if (obj1._pv == obj2._pv) return 0; if (obj1._pv > obj2._pv) return 1; return -1; }