queso-0.57.1
|
Go to the source code of this file.
Functions | |
double | annAspectRatio (int dim, const ANNorthRect &bnd_box) |
void | annEnclRect (ANNpointArray pa, ANNidxArray pidx, int n, int dim, ANNorthRect &bnds) |
void | annEnclCube (ANNpointArray pa, ANNidxArray pidx, int n, int dim, ANNorthRect &bnds) |
ANNdist | annBoxDistance (const ANNpoint q, const ANNpoint lo, const ANNpoint hi, int dim) |
ANNcoord | annSpread (ANNpointArray pa, ANNidxArray pidx, int n, int d) |
void | annMinMax (ANNpointArray pa, ANNidxArray pidx, int n, int d, ANNcoord &min, ANNcoord &max) |
int | annMaxSpread (ANNpointArray pa, ANNidxArray pidx, int n, int dim) |
void | annMedianSplit (ANNpointArray pa, ANNidxArray pidx, int n, int d, ANNcoord &cv, int n_lo) |
void | annPlaneSplit (ANNpointArray pa, ANNidxArray pidx, int n, int d, ANNcoord cv, int &br1, int &br2) |
void | annBoxSplit (ANNpointArray pa, ANNidxArray pidx, int n, int dim, ANNorthRect &box, int &n_in) |
int | annSplitBalance (ANNpointArray pa, ANNidxArray pidx, int n, int d, ANNcoord cv) |
void | annBox2Bnds (const ANNorthRect &inner_box, const ANNorthRect &bnd_box, int dim, int &n_bnds, ANNorthHSArray &bnds) |
void | annBnds2Box (const ANNorthRect &bnd_box, int dim, int n_bnds, ANNorthHSArray bnds, ANNorthRect &inner_box) |
double annAspectRatio | ( | int | dim, |
const ANNorthRect & | bnd_box | ||
) |
void annBnds2Box | ( | const ANNorthRect & | bnd_box, |
int | dim, | ||
int | n_bnds, | ||
ANNorthHSArray | bnds, | ||
ANNorthRect & | inner_box | ||
) |
Definition at line 426 of file kd_util.cpp.
References annAssignRect(), ANNorthRect::hi, ANNorthRect::lo, and ANNorthHalfSpace::project().
void annBox2Bnds | ( | const ANNorthRect & | inner_box, |
const ANNorthRect & | bnd_box, | ||
int | dim, | ||
int & | n_bnds, | ||
ANNorthHSArray & | bnds | ||
) |
Definition at line 384 of file kd_util.cpp.
References ANNorthHalfSpace::cd, ANNorthHalfSpace::cv, dim, ANNorthRect::hi, ANNorthRect::lo, and ANNorthHalfSpace::sd.
Referenced by rbd_tree().
Definition at line 124 of file kd_util.cpp.
References dim.
Referenced by ANNkd_tree::annkFRSearch(), ANNkd_tree::annkPriSearch(), and ANNkd_tree::annkSearch().
void annBoxSplit | ( | ANNpointArray | pa, |
ANNidxArray | pidx, | ||
int | n, | ||
int | dim, | ||
ANNorthRect & | box, | ||
int & | n_in | ||
) |
Definition at line 332 of file kd_util.cpp.
References ANNorthRect::inside().
Referenced by rbd_tree().
void annEnclCube | ( | ANNpointArray | pa, |
ANNidxArray | pidx, | ||
int | n, | ||
int | dim, | ||
ANNorthRect & | bnds | ||
) |
Definition at line 92 of file kd_util.cpp.
References annEnclRect(), dim, ANNorthRect::hi, and ANNorthRect::lo.
void annEnclRect | ( | ANNpointArray | pa, |
ANNidxArray | pidx, | ||
int | n, | ||
int | dim, | ||
ANNorthRect & | bnds | ||
) |
Definition at line 73 of file kd_util.cpp.
References dim, ANNorthRect::hi, and ANNorthRect::lo.
Referenced by ANNbd_tree::ANNbd_tree(), annEnclCube(), ANNkd_tree::ANNkd_tree(), and trySimpleShrink().
int annMaxSpread | ( | ANNpointArray | pa, |
ANNidxArray | pidx, | ||
int | n, | ||
int | dim | ||
) |
Definition at line 187 of file kd_util.cpp.
References annSpread(), dim, and max_dim.
Referenced by kd_split().
void annMedianSplit | ( | ANNpointArray | pa, |
ANNidxArray | pidx, | ||
int | n, | ||
int | d, | ||
ANNcoord & | cv, | ||
int | n_lo | ||
) |
Definition at line 230 of file kd_util.cpp.
Referenced by fair_split(), kd_split(), and sl_fair_split().
void annMinMax | ( | ANNpointArray | pa, |
ANNidxArray | pidx, | ||
int | n, | ||
int | d, | ||
ANNcoord & | min, | ||
ANNcoord & | max | ||
) |
Definition at line 170 of file kd_util.cpp.
Referenced by sl_fair_split(), and sl_midpt_split().
void annPlaneSplit | ( | ANNpointArray | pa, |
ANNidxArray | pidx, | ||
int | n, | ||
int | d, | ||
ANNcoord | cv, | ||
int & | br1, | ||
int & | br2 | ||
) |
Definition at line 291 of file kd_util.cpp.
Referenced by fair_split(), midpt_split(), sl_fair_split(), and sl_midpt_split().
int annSplitBalance | ( | ANNpointArray | pa, |
ANNidxArray | pidx, | ||
int | n, | ||
int | d, | ||
ANNcoord | cv | ||
) |
Definition at line 360 of file kd_util.cpp.
Referenced by fair_split(), and sl_fair_split().
ANNcoord annSpread | ( | ANNpointArray | pa, |
ANNidxArray | pidx, | ||
int | n, | ||
int | d | ||
) |
Definition at line 154 of file kd_util.cpp.
Referenced by annMaxSpread(), fair_split(), midpt_split(), sl_fair_split(), and sl_midpt_split().