added comment to base case. Some more preliminaries for rectangle trees.
This commit is contained in:
@@ -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);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user