[mlpack-git] master: Fix a mistake in metric policy. (27ebca1)
gitdub at mlpack.org
gitdub at mlpack.org
Thu May 12 09:45:37 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/d502539e6180124a4e0ffdaf27c9cc3295a7849b...1f562a1aba7ae55475afcc95659511c2b7f694e5
>---------------------------------------------------------------
commit 27ebca1df94ca030ad7efde55f1a348e1188e3b5
Author: MarcosPividori <marcos.pividori at gmail.com>
Date: Thu May 12 10:45:16 2016 -0300
Fix a mistake in metric policy.
>---------------------------------------------------------------
27ebca1df94ca030ad7efde55f1a348e1188e3b5
doc/policies/trees.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/policies/trees.hpp b/doc/policies/trees.hpp
index e877294..89bed8c 100644
--- a/doc/policies/trees.hpp
+++ b/doc/policies/trees.hpp
@@ -408,7 +408,7 @@ tree building and other operations:
// This function is required by the MetricType policy.
// Evaluate the metric between two points (which may be of different types).
template<typename VecTypeA, typename VecTypeB>
-void Evaluate(VecTypeA& a, VecTypeB& b);
+double Evaluate(const VecTypeA& a, const VecTypeB& b);
@endcode
Note that this method is not necessarily static, so a \c MetricType object
More information about the mlpack-git
mailing list