1.1.0
CCC
 
ball_algorithm.cpp File Reference

Functions

double ** copy_double_arrAsVVD (const VectorVectorDouble &arr)
 
double ** copy_double_arr (const double **arr, int row, int col)
 
int ** copy_int_arr (const int **arr, int row, int col)
 
void swap (int *arr, int i1, int i2)
 
void btree_zero (t_btree *b)
 
int init_node (t_btree *b, int i_node, int idx_start, int idx_end)
 
int find_node_split_dim (double **data, int *node_indices, int n_features, int n_points)
 
int partition_node_indices (double **data, int *node_indices, int split_dim, int n_points, int split_index)
 
void recursive_build (t_btree *b, int i_node, int idx_start, int idx_end)
 
bool define_dist_function (int dist_type)
 
t_btreebtree_init (const double **data, int n_samples, int n_features, int leaf_size, int dist_type)
 
double min_dist (t_btree *tree, int i_node, const double *pt)
 
int query_depth_first (t_btree *b, int i_node, const double *pt, int i_pt, t_nheap *heap, double dist)
 
void free_2d_double (double **arr, int row)
 
void free_2d_int (int **arr, int row)
 
void free_tree (t_btree *tree)
 
void btree_display (const t_btree *tree, int level)
 

Function Documentation

void btree_display ( const t_btree tree,
int  level 
)
t_btree* btree_init ( const double **  data,
int  n_samples,
int  n_features,
int  leaf_size,
int  dist_type 
)
void btree_zero ( t_btree b)
double** copy_double_arr ( const double **  arr,
int  row,
int  col 
)
double** copy_double_arrAsVVD ( const VectorVectorDouble arr)
int** copy_int_arr ( const int **  arr,
int  row,
int  col 
)
bool define_dist_function ( int  dist_type)
int find_node_split_dim ( double **  data,
int *  node_indices,
int  n_features,
int  n_points 
)
void free_2d_double ( double **  arr,
int  row 
)
void free_2d_int ( int **  arr,
int  row 
)
void free_tree ( t_btree tree)
int init_node ( t_btree b,
int  i_node,
int  idx_start,
int  idx_end 
)
double min_dist ( t_btree tree,
int  i_node,
const double *  pt 
)
int partition_node_indices ( double **  data,
int *  node_indices,
int  split_dim,
int  n_points,
int  split_index 
)
int query_depth_first ( t_btree b,
int  i_node,
const double *  pt,
int  i_pt,
t_nheap heap,
double  dist 
)
void recursive_build ( t_btree b,
int  i_node,
int  idx_start,
int  idx_end 
)
void swap ( int *  arr,
int  i1,
int  i2 
)