public CDTNode(CDecisionTree pInNewDecisionTree, List <int> rwInRemainingAttributeList) { m_pDecisionTree = pInNewDecisionTree; m_fEntropy = 0.0f; m_iClass = 0; m_bIsLeaf = true; m_rwRemainingAttributeIDs = rwInRemainingAttributeList; m_rwExampleIDs = new List <int>(); m_rwChildren = new List <CDTNode>(); m_rwInformationGain = new List <float>(); m_iAttributeID = 0; m_rwClassCount = new List <int>(); }
////////////////////////////////////////////////////// // Mutator: // SetDecisionTree // // Purpose: // Sets the pointer to the decision tree of this // node. Helps with determining how many values // are in an attribute, etc. ////////////////////////////////////////////////////// public void SetDecisionTree(CDecisionTree pInNewTree) { m_pDecisionTree = pInNewTree; }