[mlpack-git] master: Fix error, a balltree should use ballbounds instead of hrectbounds. (706f0ee)

gitdub at mlpack.org gitdub at mlpack.org
Fri May 27 20:21:36 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/1f562a1aba7ae55475afcc95659511c2b7f694e5...5b8fdce471328f722fcd8c0f22a6d995ce22c98b

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

commit 706f0ee9307effc4f240d16ee398a8a1ee71a64c
Author: MarcosPividori <marcos.pividori at gmail.com>
Date:   Fri May 27 20:56:23 2016 -0300

    Fix error, a balltree should use ballbounds instead of hrectbounds.


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

706f0ee9307effc4f240d16ee398a8a1ee71a64c
 src/mlpack/core/tree/binary_space_tree/typedef.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mlpack/core/tree/binary_space_tree/typedef.hpp b/src/mlpack/core/tree/binary_space_tree/typedef.hpp
index 7d58f67..28145d1 100644
--- a/src/mlpack/core/tree/binary_space_tree/typedef.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/typedef.hpp
@@ -103,7 +103,7 @@ template<typename MetricType, typename StatisticType, typename MatType>
 using BallTree = BinarySpaceTree<MetricType,
                                  StatisticType,
                                  MatType,
-                                 bound::HRectBound,
+                                 bound::BallBound,
                                  MidpointSplit>;
 
 /**
@@ -132,7 +132,7 @@ template<typename MetricType, typename StatisticType, typename MatType>
 using MeanSplitBallTree = BinarySpaceTree<MetricType,
                                           StatisticType,
                                           MatType,
-                                          bound::HRectBound,
+                                          bound::BallBound,
                                           MeanSplit>;
 
 } // namespace tree




More information about the mlpack-git mailing list