|
| | TreeInNode () |
| |
| virtual | ~TreeInNode () |
| |
| virtual bool | RecursiveBuild (size_t num_keys, int dim, int depth, int depth_curr, int bf, DTYPE **p, double *means, int *assign, int thread_num=1) |
| |
| virtual bool | ClearNode (int bf) |
| |
| virtual bool | WriteNode (FILE *f, int branch_num, int dim) const |
| |
| virtual bool | ReadNode (FILE *f, int branch_num, int dim) |
| |
| virtual size_t | CountNodes (int branch_num) const |
| |
| virtual size_t | CountLeaves (int branch_num) const |
| |
| virtual bool | Compare (TreeNode *in, int branch_num, int dim) const |
| |
| virtual bool | ClearScores (int bf) |
| | refresh the temporary score for this tree More...
|
| |
| virtual size_t | DescendFeature (float *q, DTYPE *v, size_t image_index, int branch_num, int dim, bool add=true) |
| |
| virtual double | ComputeImageVectorMagnitude (int bf, DistanceType dt) |
| |
| virtual bool | SetConstantWeight (int bf) |
| | set a constant weight to the leaf nodes More...
|
| |
| virtual bool | ComputeTFIDFWeight (int bf, size_t n) |
| | compute TF-IDF weight and pre-apply weight adjusting to inverted lists More...
|
| |
| virtual bool | ComputeDatabaseMagnitude (int bf, DistanceType dis_type, size_t start_id, std::vector< float > &database_mag) |
| | compute the vector magnitude of all images in the database More...
|
| |
| virtual bool | NormalizeDatabase (int bf, size_t start_id, std::vector< float > &database_mag) |
| | normalize the inverted list score by the magnitude of image vector More...
|
| |
| virtual bool | IndexLeaves (int branch_num) |
| |
| virtual bool | FillQueryVector (float *q, int branch_num, float normalize_factor) |
| | fill the query vector More...
|
| |
| virtual bool | ScoreQuery (float *q, int branch_num, DistanceType dt, float *scores) |
| | score each image in the database More...
|
| |
| | TreeNode () |
| |
| virtual | ~TreeNode () |
| |
The interior node class of the tree.