[mlpack-svn] r12816 - mlpack/trunk/src/mlpack/core/tree
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon May 28 00:11:57 EDT 2012
Author: rcurtin
Date: 2012-05-28 00:11:57 -0400 (Mon, 28 May 2012)
New Revision: 12816
Modified:
mlpack/trunk/src/mlpack/core/tree/cover_tree_impl.hpp
Log:
No far set in root node.
Modified: mlpack/trunk/src/mlpack/core/tree/cover_tree_impl.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/tree/cover_tree_impl.hpp 2012-05-28 04:11:22 UTC (rev 12815)
+++ mlpack/trunk/src/mlpack/core/tree/cover_tree_impl.hpp 2012-05-28 04:11:57 UTC (rev 12816)
@@ -103,9 +103,10 @@
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;
More information about the mlpack-svn
mailing list