[mlpack-git] master: binary_space_tree_impl.hpp #787 fix (abcd902)
gitdub at mlpack.org
gitdub at mlpack.org
Mon Sep 19 09:12:30 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/045c16afa6fff8520722bbf19d98312e0eb24532...635238ba763335f6708b5560ae6606b008fdd609
>---------------------------------------------------------------
commit abcd902bead4380919606b55909ea9a50aa5518e
Author: Anuraj Kanodia <akanuraj200 at gmail.com>
Date: Mon Sep 19 18:42:30 2016 +0530
binary_space_tree_impl.hpp #787 fix
correction in earlier commit
>---------------------------------------------------------------
abcd902bead4380919606b55909ea9a50aa5518e
src/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp | 8 ++++----
1 file changed, 4 insertions(+), 4 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 ecc3398..5d858e3 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
@@ -554,8 +554,8 @@ size_t BinarySpaceTree<MetricType, StatisticType, MatType, BoundType,
if (IsLeaf() || !left || !right)
return 0;
- ElemType leftDist = left->MinDistance(*queryNode);
- ElemType rightDist = right->MinDistance(*queryNode);
+ ElemType leftDist = left->MinDistance(queryNode);
+ ElemType rightDist = right->MinDistance(queryNode);
if (leftDist < rightDist)
return 0;
if (rightDist < leftDist)
@@ -579,8 +579,8 @@ size_t BinarySpaceTree<MetricType, StatisticType, MatType, BoundType,
if (IsLeaf() || !left || !right)
return 0;
- ElemType leftDist = left->MaxDistance(*queryNode);
- ElemType rightDist = right->MaxDistance(*queryNode);
+ ElemType leftDist = left->MaxDistance(queryNode);
+ ElemType rightDist = right->MaxDistance(queryNode);
if (leftDist > rightDist)
return 0;
if (rightDist > leftDist)
More information about the mlpack-git
mailing list