MCPcopy Create free account
hub / github.com/davisking/dlib / left_child

Function left_child

dlib/image_processing/shape_predictor.h:45–45  ·  view source on GitHub ↗

a tree is just a std::vector . We use this function to navigate the tree nodes

Source from the content-addressed store, hash-verified

43 // a tree is just a std::vector<impl::split_feature>. We use this function to navigate the
44 // tree nodes
45 inline unsigned long left_child (unsigned long idx) { return 2*idx + 1; }
46 /*!
47 ensures
48 - returns the index of the left child of the binary tree node idx

Callers 2

regression_treeClass · 0.85
make_regression_treeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected