Skip to content

Commit

Permalink
Remove unused information from neighbor search stats.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosPividori committed May 31, 2016
1 parent 6877607 commit ba4c5bb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
Expand Up @@ -640,7 +640,6 @@ Search(const size_t k,
// Reset bounds of this node.
node->Stat().FirstBound() = SortPolicy::WorstDistance();
node->Stat().SecondBound() = SortPolicy::WorstDistance();
node->Stat().Bound() = SortPolicy::WorstDistance();
node->Stat().LastDistance() = 0.0;

// Then add the children.
Expand Down
12 changes: 0 additions & 12 deletions src/mlpack/methods/neighbor_search/neighbor_search_stat.hpp
Expand Up @@ -32,11 +32,6 @@ class NeighborSearchStat
//! The aux bound on the node's neighbor distances (B_aux). This represents
//! the best descendant candidate distance (used to calculate secondBound).
double auxBound;
//! The better of the two bounds.
double bound;

//! The last distance evaluation node.
void* lastDistanceNode;
//! The last distance evaluation.
double lastDistance;

Expand All @@ -49,7 +44,6 @@ class NeighborSearchStat
firstBound(SortPolicy::WorstDistance()),
secondBound(SortPolicy::WorstDistance()),
auxBound(SortPolicy::WorstDistance()),
bound(SortPolicy::WorstDistance()),
lastDistance(0.0) { }

/**
Expand All @@ -61,7 +55,6 @@ class NeighborSearchStat
firstBound(SortPolicy::WorstDistance()),
secondBound(SortPolicy::WorstDistance()),
auxBound(SortPolicy::WorstDistance()),
bound(SortPolicy::WorstDistance()),
lastDistance(0.0) { }

//! Get the first bound.
Expand All @@ -76,10 +69,6 @@ class NeighborSearchStat
double AuxBound() const { return auxBound; }
//! Modify the aux bound.
double& AuxBound() { return auxBound; }
//! Get the overall bound (the better of the two bounds).
double Bound() const { return bound; }
//! Modify the overall bound (it should be the better of the two bounds).
double& Bound() { return bound; }
//! Get the last distance calculation.
double LastDistance() const { return lastDistance; }
//! Modify the last distance calculation.
Expand All @@ -94,7 +83,6 @@ class NeighborSearchStat
ar & CreateNVP(firstBound, "firstBound");
ar & CreateNVP(secondBound, "secondBound");
ar & CreateNVP(auxBound, "auxBound");
ar & CreateNVP(bound, "bound");
ar & CreateNVP(lastDistance, "lastDistance");
}
};
Expand Down

0 comments on commit ba4c5bb

Please sign in to comment.