added comment to base case. Some more preliminaries for rectangle trees.

This commit is contained in:
andrewmw94
2014-05-22 15:16:15 +00:00
parent 390e7d62e3
commit ea72f0cd8a
2 changed files with 9 additions and 2 deletions
@@ -76,7 +76,7 @@ class RectangleTree
* @param leafSize Size of each leaf in the tree;
* @param maxNumChildren The maximum number of child nodes a non-leaf node may have.
*/
RectangleTree(MatType& data, const size_t leafSize = 20, const size_t maxNumChildren = 5);
RectangleTree(MatType& data, const size_t leafSize = 20, const size_t maxNumChildren = 4);
//TODO implement the oldFromNew stuff if applicable.
@@ -22,7 +22,14 @@ class NeighborSearchRules
arma::Mat<size_t>& neighbors,
arma::mat& distances,
MetricType& metric);
/**
* Get the distance from the query point to the reference point.
* This will update the "neighbor" matrix with the new point if appropriate
* and will track the number of base cases (number of points evaluated).
*
* @param queryIndex Index of query point.
* @param referenceIndex Index of reference point.
*/
double BaseCase(const size_t queryIndex, const size_t referenceIndex);
/**