[mlpack-svn] r16834 - mlpack/trunk/src/mlpack/core/tree/cover_tree
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Thu Jul 17 11:32:27 EDT 2014
Author: rcurtin
Date: Thu Jul 17 11:32:27 2014
New Revision: 16834
Log:
Actually calculate score and base case for first node combination.
Modified:
mlpack/trunk/src/mlpack/core/tree/cover_tree/dual_tree_traverser_impl.hpp
Modified: mlpack/trunk/src/mlpack/core/tree/cover_tree/dual_tree_traverser_impl.hpp
==============================================================================
--- mlpack/trunk/src/mlpack/core/tree/cover_tree/dual_tree_traverser_impl.hpp (original)
+++ mlpack/trunk/src/mlpack/core/tree/cover_tree/dual_tree_traverser_impl.hpp Thu Jul 17 11:32:27 2014
@@ -34,8 +34,11 @@
DualCoverTreeMapEntry rootRefEntry;
rootRefEntry.referenceNode = &referenceNode;
- rootRefEntry.score = 0.0; // Must recurse into.
- rootRefEntry.baseCase = 0.0;
+
+ // Perform the evaluation between the roots of either tree.
+ rootRefEntry.score = rule.Score(queryNode, referenceNode);
+ rootRefEntry.baseCase = rule.BaseCase(queryNode.Point(),
+ referenceNode.Point());
rootRefEntry.traversalInfo = rule.TraversalInfo();
refMap[referenceNode.Scale()].push_back(rootRefEntry);
More information about the mlpack-svn
mailing list