[mlpack-svn] r13955 - 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 Nov 29 18:55:59 EST 2012
Author: rcurtin
Date: 2012-11-29 18:55:59 -0500 (Thu, 29 Nov 2012)
New Revision: 13955
Modified:
mlpack/trunk/src/mlpack/core/tree/cover_tree/cover_tree.hpp
Log:
Add mutators for ParentDistance() and FurthestDescendantDistance() and fix a comment.
Modified: mlpack/trunk/src/mlpack/core/tree/cover_tree/cover_tree.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/tree/cover_tree/cover_tree.hpp 2012-11-29 22:40:36 UTC (rev 13954)
+++ mlpack/trunk/src/mlpack/core/tree/cover_tree/cover_tree.hpp 2012-11-29 23:55:59 UTC (rev 13955)
@@ -256,10 +256,14 @@
//! Get the distance to the parent.
double ParentDistance() const { return parentDistance; }
+ //! Modify the distance to the parent.
+ double& ParentDistance() { return parentDistance; }
- //! Get the distance to teh furthest descendant.
+ //! Get the distance to the furthest descendant.
double FurthestDescendantDistance() const
{ return furthestDescendantDistance; }
+ //! Modify the distance to the furthest descendant.
+ double& FurthestDescendantDistance() { return furthestDescendantDistance; }
private:
//! Reference to the matrix which this tree is built on.
More information about the mlpack-svn
mailing list