[mlpack-git] master: Update some minor documentation and const correctness. (f69c89c)

gitdub at mlpack.org gitdub at mlpack.org
Tue Oct 4 14:11:40 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/9ef7339d40550a974b3939e9fcb966fac2c09065...ebdb5abeaa3fd621a06ae663862bb72df76d2b40

>---------------------------------------------------------------

commit f69c89c30865fa8affb3bed9a7404994bba5238f
Author: Ryan Curtin <ryan at ratml.org>
Date:   Thu Sep 15 16:25:05 2016 -0400

    Update some minor documentation and const correctness.


>---------------------------------------------------------------

f69c89c30865fa8affb3bed9a7404994bba5238f
 src/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp b/src/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp
index 6d60080..9d782b2 100644
--- a/src/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp
@@ -200,6 +200,7 @@ class BinarySpaceTree
    * @param parent Parent of this node.  Its dataset will be modified!
    * @param begin Index of point to start tree construction with.
    * @param count Number of points to use to construct tree.
+   * @param splitter Instantiated node splitter object.
    * @param maxLeafSize Size of each leaf in the tree.
    */
   BinarySpaceTree(BinarySpaceTree* parent,
@@ -216,14 +217,15 @@ class BinarySpaceTree
    *
    * A mapping of the old point indices to the new point indices is filled, but
    * it is expected that the vector is already allocated with size greater than
-   * or equal to (begin_in + count_in), and if that is not true, invalid memory
-   * reads (and writes) will occur.
+   * or equal to (begin + count), and if that is not true, invalid memory reads
+   * (and writes) will occur.
    *
    * @param parent Parent of this node.  Its dataset will be modified!
    * @param begin Index of point to start tree construction with.
    * @param count Number of points to use to construct tree.
    * @param oldFromNew Vector which will be filled with the old positions for
    *     each new point.
+   * @param splitter Instantiated node splitter object.
    * @param maxLeafSize Size of each leaf in the tree.
    */
   BinarySpaceTree(BinarySpaceTree* parent,
@@ -483,7 +485,7 @@ class BinarySpaceTree
   size_t& Count() { return count; }
 
   //! Store the center of the bounding region in the given vector.
-  void Center(arma::vec& center) { bound.Center(center); }
+  void Center(arma::vec& center) const { bound.Center(center); }
 
  private:
   /**




More information about the mlpack-git mailing list