Example #1
0
        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);
        }
Example #2
0
 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);
 }