Vowpal Wabbit
Public Member Functions | Public Attributes | List of all members
VW::cats_tree::min_depth_binary_tree Struct Reference

#include <cats_tree.h>

Public Member Functions

void build_tree (uint32_t num_nodes, uint32_t bandwidth)
 
uint32_t internal_node_count () const
 
uint32_t leaf_node_count () const
 
uint32_t depth () const
 
const tree_nodeget_sibling (const tree_node &v)
 
std::string tree_stats_to_string ()
 

Public Attributes

std::vector< tree_nodenodes
 
uint32_t root_idx = 0
 

Member Function Documentation

◆ build_tree()

void VW::cats_tree::min_depth_binary_tree::build_tree ( uint32_t  num_nodes,
uint32_t  bandwidth 
)

◆ depth()

uint32_t VW::cats_tree::min_depth_binary_tree::depth ( ) const
inline

◆ get_sibling()

const tree_node& VW::cats_tree::min_depth_binary_tree::get_sibling ( const tree_node v)

◆ internal_node_count()

uint32_t VW::cats_tree::min_depth_binary_tree::internal_node_count ( ) const
inline

◆ leaf_node_count()

uint32_t VW::cats_tree::min_depth_binary_tree::leaf_node_count ( ) const
inline

◆ tree_stats_to_string()

std::string VW::cats_tree::min_depth_binary_tree::tree_stats_to_string ( )

Member Data Documentation

◆ nodes

std::vector<tree_node> VW::cats_tree::min_depth_binary_tree::nodes

◆ root_idx

uint32_t VW::cats_tree::min_depth_binary_tree::root_idx = 0

The documentation for this struct was generated from the following file: