コード例 #1
0
        public void Terminate(ref ArrayList data, ref Dictionary <object, int> outcomeCounts)
        {
            left     = null;
            right    = null;
            leafData = data;

            object maxOutcome = from outcomeCount in outcomeCounts orderby outcomeCount.Value descending select outcomeCount.Key;

            this.outcome = maxOutcome;
        }
コード例 #2
0
 public bool Compare <T>(Nominal <T> other)
 {
     if (value.Equals(other.value))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }