Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed comments in remove_rec

  • Loading branch information...
commit 24950a6b6dacb7b7ac201c724bc605fae08ccbee 1 parent e66df92
@DNCrane authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 Cover_Tree.h
View
5 Cover_Tree.h
@@ -341,9 +341,10 @@ void CoverTree<Point>::remove_rec(const Point& p,
}
}
if(level>_minLevel) remove_rec(p,coverSets,level-1,multi);
- if(minNode->hasPoint(p)) {//minDist == 0.0) {//if minDist is 0.0 then minNode must be removed.
+ if(minNode->hasPoint(p)) {
//the multi flag indicates the point we removed is from a
- //node containing multiple points, and we have removed it.
+ //node containing multiple points, and we have removed it,
+ //so we don't need to do anything else.
if(multi) return;
if(!minNode->isSingle()) {
minNode->removePoint(p);
Please sign in to comment.
Something went wrong with that request. Please try again.