No far set in root node.

This commit is contained in:
Ryan Curtin
2012-05-28 04:11:57 +00:00
parent 05a7fd57a8
commit a5e73dcc71
+2 -1
View File
@@ -103,9 +103,10 @@ CoverTree<MetricType, RootPointPolicy, StatisticType>::CoverTree(
if (nearSetSize == 1)
{
size_t childNearSetSize = 0;
size_t childFarSetSize = 0;
children.push_back(new CoverTree(dataset, expansionConstant,
indices[0], scale - 1, indices, distances, childNearSetSize,
farSetSize, usedSetSize));
childFarSetSize, usedSetSize));
// And we're done.
break;