@ Override public float getLeafValue ( FVec feat , int root_id ) { Node n = nodes [ root_id ] ; while ( ! n . _isLeaf ) { n = nodes [ n . next ( feat ) ] ; } return n . leaf_value ; }
Retrieves nodes from root to leaf and returns leaf value .