[mlpack-git] master: Missed a function for the changed HRectBound API. (0a32987)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Wed Jul 29 16:42:13 EDT 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/f8ceffae0613b350f4d6bdd46c6c8633a40b4897...6ee21879488fe98612a4619b17f8b51e8da5215b

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

commit 0a32987680606711a5af7149b6795dcb06050a48
Author: ryan <ryan at ratml.org>
Date:   Fri Jul 24 15:02:25 2015 -0400

    Missed a function for the changed HRectBound API.


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

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

diff --git a/src/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp b/src/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp
index 76a6bc6..9129b59 100644
--- a/src/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp
@@ -518,9 +518,8 @@ void BinarySpaceTree<MetricType, StatisticType, MatType, BoundType, SplitType>::
   left->Center(leftCenter);
   right->Center(rightCenter);
 
-  const double leftParentDistance = bound.Metric().Evaluate(center, leftCenter);
-  const double rightParentDistance = bound.Metric().Evaluate(center,
-      rightCenter);
+  const double leftParentDistance = MetricType::Evaluate(center, leftCenter);
+  const double rightParentDistance = MetricType::Evaluate(center, rightCenter);
 
   left->ParentDistance() = leftParentDistance;
   right->ParentDistance() = rightParentDistance;
@@ -576,8 +575,7 @@ SplitNode(std::vector<size_t>& oldFromNew,
   right->Center(rightCenter);
 
   const double leftParentDistance = MetricType::Evaluate(center, leftCenter);
-  const double rightParentDistance = MetricType::Evaluate(center,
-      rightCenter);
+  const double rightParentDistance = MetricType::Evaluate(center, rightCenter);
 
   left->ParentDistance() = leftParentDistance;
   right->ParentDistance() = rightParentDistance;



More information about the mlpack-git mailing list