This repository was archived by the owner on Sep 27, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ void KDTree::Update(UNUSED_ATTRIBUTE Cluster *cluster) {
34
34
// to the structure. Will need to change AnnoyIndex to optimize this
35
35
// The update to the centroid is reflected in the cluster. There is no change
36
36
// to the clusters_, so just rebuild the entire index
37
- index_.reinitialize ();
37
+ index_.unload ();
38
38
Build ();
39
39
}
40
40
@@ -64,7 +64,7 @@ void KDTree::Build() {
64
64
}
65
65
66
66
void KDTree::Build (std::set<Cluster *> &clusters) {
67
- index_.reinitialize ();
67
+ index_.unload ();
68
68
clusters_.clear ();
69
69
for (auto &cluster : clusters) {
70
70
clusters_.push_back (cluster);
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class KDTree {
51
51
*
52
52
* @param feature - the vector whose nearest neigbor is being searched for
53
53
* @param cluster - return the cluster of the nearest neighbor in this
54
- * @param feature - return the similarity to the nearest neighbor in this
54
+ * @param similarity - return the similarity to the nearest neighbor in this
55
55
*/
56
56
void GetNN (std::vector<double > &feature, Cluster *&cluster,
57
57
double &similarity);
You can’t perform that action at this time.
0 commit comments