[mlpack-svn] r16063 - mlpack/trunk/src/mlpack/core/tree/cover_tree

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Fri Nov 22 13:49:34 EST 2013


Author: rcurtin
Date: Fri Nov 22 13:49:34 2013
New Revision: 16063

Log:
Implement FurthestPointDistance() for cover trees.


Modified:
   mlpack/trunk/src/mlpack/core/tree/cover_tree/cover_tree.hpp

Modified: mlpack/trunk/src/mlpack/core/tree/cover_tree/cover_tree.hpp
==============================================================================
--- mlpack/trunk/src/mlpack/core/tree/cover_tree/cover_tree.hpp	(original)
+++ mlpack/trunk/src/mlpack/core/tree/cover_tree/cover_tree.hpp	Fri Nov 22 13:49:34 2013
@@ -310,10 +310,14 @@
   //! Modify the distance to the parent.
   double& ParentDistance() { return parentDistance; }
 
-  //! Get the distance to the furthest descendant.
+  //! Get the distance to the furthest point.  This is always 0 for cover trees.
+  double FurthestPointDistance() const { return 0.0; }
+
+  //! Get the distance from the center of the node to the furthest descendant.
   double FurthestDescendantDistance() const
   { return furthestDescendantDistance; }
-  //! Modify the distance to the furthest descendant.
+  //! Modify the distance from the center of the node to the furthest
+  //! descendant.
   double& FurthestDescendantDistance() { return furthestDescendantDistance; }
 
   //! Get the centroid of the node and store it in the given vector.



More information about the mlpack-svn mailing list