#include <ball_algorithm.h>
|
| | t_btree ()=default |
| |
| | t_btree (MatrixT< double > &&data, Id n_samples, Id n_features, bool all_available, Id leaf_size, Id default_distance_function) |
| |
| void | display (Id level=-1) const |
| |
| Id | init_node (Id i_node, Id idx_start, Id idx_end) |
| |
| void | recursive_build (Id i_node, Id idx_start, Id idx_end) |
| |
| double | min_dist (Id i_node, const constvect pt) const |
| | Calculate the distance between the current 'pt' and the centroid of node 'i_node' Returns 0 if 'pt' belongs to the node.
|
| |
| Id | query_depth_first (Id i_node, const constvect pt, Id i_pt, t_nheap &heap, double dist) const |
| |
◆ t_btree() [1/2]
| gstlrn::t_btree::t_btree |
( |
| ) |
|
|
default |
◆ t_btree() [2/2]
| gstlrn::t_btree::t_btree |
( |
MatrixT< double > && |
data, |
|
|
Id |
n_samples, |
|
|
Id |
n_features, |
|
|
bool |
all_available, |
|
|
Id |
leaf_size, |
|
|
Id |
default_distance_function |
|
) |
| |
◆ display()
| void gstlrn::t_btree::display |
( |
Id |
level = -1 | ) |
const |
◆ init_node()
| Id gstlrn::t_btree::init_node |
( |
Id |
i_node, |
|
|
Id |
idx_start, |
|
|
Id |
idx_end |
|
) |
| |
◆ min_dist()
| double gstlrn::t_btree::min_dist |
( |
Id |
i_node, |
|
|
const constvect |
pt |
|
) |
| const |
Calculate the distance between the current 'pt' and the centroid of node 'i_node' Returns 0 if 'pt' belongs to the node.
- Parameters
-
| i_node | Rank of the target node |
| pt | Characteristics of the target SpacePoint |
- Returns
- double Minimum distance or 0
◆ query_depth_first()
| Id gstlrn::t_btree::query_depth_first |
( |
Id |
i_node, |
|
|
const constvect |
pt, |
|
|
Id |
i_pt, |
|
|
t_nheap & |
heap, |
|
|
double |
dist |
|
) |
| const |
◆ recursive_build()
| void gstlrn::t_btree::recursive_build |
( |
Id |
i_node, |
|
|
Id |
idx_start, |
|
|
Id |
idx_end |
|
) |
| |
◆ available
◆ data
| MatrixT<double> gstlrn::t_btree::data |
◆ default_distance_function
| Id gstlrn::t_btree::default_distance_function {1} |
◆ idx_array
| gstlrn::t_btree::idx_array |
◆ leaf_size
| Id gstlrn::t_btree::leaf_size |
◆ n_features
| Id gstlrn::t_btree::n_features |
◆ n_levels
| Id gstlrn::t_btree::n_levels |
◆ n_nodes
| Id gstlrn::t_btree::n_nodes |
◆ n_samples
| Id gstlrn::t_btree::n_samples |
◆ node_bounds
| MatrixT<double> gstlrn::t_btree::node_bounds |
◆ node_data
| std::vector<t_nodedata> gstlrn::t_btree::node_data |
The documentation for this struct was generated from the following files:
- include/Tree/ball_algorithm.h
- src/Tree/ball_algorithm.cpp