Class LeafNode

    • Field Detail

      • m_theNode

        public HNode m_theNode
        The actual node for this leaf
      • m_parentNode

        public SplitNode m_parentNode
        Parent split node
      • m_parentBranch

        public String m_parentBranch
        Parent branch leading to this node
    • Constructor Detail

      • LeafNode

        public LeafNode()
        Construct an empty leaf node
      • LeafNode

        public LeafNode​(HNode node,
                        SplitNode parentNode,
                        String parentBranch)
        Construct a leaf node with the given actual node, parent and parent branch
        Parameters:
        node - the actual node at this leaf
        parentNode - the parent split node
        parentBranch - the branch leading to this node
    • Method Detail

      • updateNode

        public void updateNode​(Instance inst)
                        throws Exception
        Description copied from class: HNode
        Update the node with the supplied instance
        Specified by:
        updateNode in class HNode
        Parameters:
        inst - the instance to update with
        Throws:
        Exception - if a problem occurs