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; }
public bool Compare <T>(Nominal <T> other) { if (value.Equals(other.value)) { return(true); } else { return(false); } }