[mlpack-svn] r15039 - in mlpack/trunk/src/mlpack/core/tree: . binary_space_tree
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed May 8 20:04:00 EDT 2013
Author: rcurtin
Date: 2013-05-08 20:04:00 -0400 (Wed, 08 May 2013)
New Revision: 15039
Modified:
mlpack/trunk/src/mlpack/core/tree/binary_space_tree/traits.hpp
mlpack/trunk/src/mlpack/core/tree/tree_traits.hpp
Log:
Add HasSelfChildren trait.
Modified: mlpack/trunk/src/mlpack/core/tree/binary_space_tree/traits.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/tree/binary_space_tree/traits.hpp 2013-05-08 22:07:22 UTC (rev 15038)
+++ mlpack/trunk/src/mlpack/core/tree/binary_space_tree/traits.hpp 2013-05-09 00:04:00 UTC (rev 15039)
@@ -41,6 +41,11 @@
* There is no guarantee that the first point in a node is its centroid.
*/
static const bool FirstPointIsCentroid = false;
+
+ /**
+ * Points are not contained at multiple levels of the binary space tree.
+ */
+ static const bool HasSelfChildren = false;
};
}; // namespace tree
Modified: mlpack/trunk/src/mlpack/core/tree/tree_traits.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/tree/tree_traits.hpp 2013-05-08 22:07:22 UTC (rev 15038)
+++ mlpack/trunk/src/mlpack/core/tree/tree_traits.hpp 2013-05-09 00:04:00 UTC (rev 15039)
@@ -89,6 +89,12 @@
* This is true if Point(0) is the centroid of the node.
*/
static const bool FirstPointIsCentroid = false;
+
+ /**
+ * This is true if the points contained in the first child of a node
+ * (Child(0)) are also contained in that node.
+ */
+ static const bool HasSelfChildren = false;
};
}; // namespace tree
More information about the mlpack-svn
mailing list