[mlpack-git] master: cover_tree.hpp #787 fix (d3403e4)
gitdub at mlpack.org
gitdub at mlpack.org
Mon Sep 19 08:58:51 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/045c16afa6fff8520722bbf19d98312e0eb24532...635238ba763335f6708b5560ae6606b008fdd609
>---------------------------------------------------------------
commit d3403e436f53175c5a9a7379e70e76a4d779f325
Author: Anuraj Kanodia <akanuraj200 at gmail.com>
Date: Mon Sep 19 18:28:51 2016 +0530
cover_tree.hpp #787 fix
Replaced MinDistance(TreeType*) with MinDistance(TreeType&)
>---------------------------------------------------------------
d3403e436f53175c5a9a7379e70e76a4d779f325
src/mlpack/core/tree/cover_tree/cover_tree.hpp | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/mlpack/core/tree/cover_tree/cover_tree.hpp b/src/mlpack/core/tree/cover_tree/cover_tree.hpp
index 15316bf..141a4af 100644
--- a/src/mlpack/core/tree/cover_tree/cover_tree.hpp
+++ b/src/mlpack/core/tree/cover_tree/cover_tree.hpp
@@ -335,11 +335,11 @@ class CoverTree
size_t GetFurthestChild(const CoverTree& queryNode);
//! Return the minimum distance to another node.
- ElemType MinDistance(const CoverTree* other) const;
+ ElemType MinDistance(const CoverTree& other) const;
//! Return the minimum distance to another node given that the point-to-point
//! distance has already been calculated.
- ElemType MinDistance(const CoverTree* other, const ElemType distance) const;
+ ElemType MinDistance(const CoverTree& other, const ElemType distance) const;
//! Return the minimum distance to another point.
ElemType MinDistance(const arma::vec& other) const;
@@ -349,11 +349,11 @@ class CoverTree
ElemType MinDistance(const arma::vec& other, const ElemType distance) const;
//! Return the maximum distance to another node.
- ElemType MaxDistance(const CoverTree* other) const;
+ ElemType MaxDistance(const CoverTree& other) const;
//! Return the maximum distance to another node given that the point-to-point
//! distance has already been calculated.
- ElemType MaxDistance(const CoverTree* other, const ElemType distance) const;
+ ElemType MaxDistance(const CoverTree& other, const ElemType distance) const;
//! Return the maximum distance to another point.
ElemType MaxDistance(const arma::vec& other) const;
@@ -363,11 +363,11 @@ class CoverTree
ElemType MaxDistance(const arma::vec& other, const ElemType distance) const;
//! Return the minimum and maximum distance to another node.
- math::RangeType<ElemType> RangeDistance(const CoverTree* other) const;
+ math::RangeType<ElemType> RangeDistance(const CoverTree& other) const;
//! Return the minimum and maximum distance to another node given that the
//! point-to-point distance has already been calculated.
- math::RangeType<ElemType> RangeDistance(const CoverTree* other,
+ math::RangeType<ElemType> RangeDistance(const CoverTree& other,
const ElemType distance) const;
//! Return the minimum and maximum distance to another point.
More information about the mlpack-git
mailing list