private int splitVariableIdx; // Tree.Schema.PredictorLst[splitVariableIdx] = splitVariable #endregion Fields #region Constructors public Node() { Tree = Def.Tree; ++Node.CountId; id = Node.CountId; PositionType = PositionTypeEnum.Root; Table = new TableMap(this); Def.Db.PredictorsFill(this); MvProcedures(); Def.Tree.NodeAdd(this); }
public Node(Node ancestor) { Tree = Def.Tree; ++Node.CountId; id = Node.CountId; PositionType = PositionTypeEnum.Intermediate; Table = new TableMap(this); Def.Db.PredictorsFill(this); MvProcedures(); Def.Tree.NodeAdd(this); Ancestor = ancestor; Ancestor.DescendentLst.Add(this); }