[mlpack-git] master: Fix minor comment misspelling. (95da0dd)
gitdub at mlpack.org
gitdub at mlpack.org
Mon Aug 15 12:02:51 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/dc6bae4e8634486b384b67e3ae7a690f34bdc677...95da0dd57f73d7f102652a48d7c052b7e66532b5
>---------------------------------------------------------------
commit 95da0dd57f73d7f102652a48d7c052b7e66532b5
Author: Ryan Curtin <ryan at ratml.org>
Date: Mon Aug 15 12:02:51 2016 -0400
Fix minor comment misspelling.
>---------------------------------------------------------------
95da0dd57f73d7f102652a48d7c052b7e66532b5
src/mlpack/core/tree/hollow_ball_bound.hpp | 2 +-
src/mlpack/core/tree/hollow_ball_bound_impl.hpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mlpack/core/tree/hollow_ball_bound.hpp b/src/mlpack/core/tree/hollow_ball_bound.hpp
index 03cc268..c7b29cf 100644
--- a/src/mlpack/core/tree/hollow_ball_bound.hpp
+++ b/src/mlpack/core/tree/hollow_ball_bound.hpp
@@ -102,7 +102,7 @@ class HollowBallBound
//! Get the center point of the hollow.
const arma::Col<ElemType>& HollowCenter() const { return hollowCenter; }
- //! Modify the center point od the hollow.
+ //! Modify the center point of the hollow.
arma::Col<ElemType>& HollowCenter() { return hollowCenter; }
//! Get the dimensionality of the ball.
diff --git a/src/mlpack/core/tree/hollow_ball_bound_impl.hpp b/src/mlpack/core/tree/hollow_ball_bound_impl.hpp
index ac60299..39a4b0f 100644
--- a/src/mlpack/core/tree/hollow_ball_bound_impl.hpp
+++ b/src/mlpack/core/tree/hollow_ball_bound_impl.hpp
@@ -291,7 +291,7 @@ math::RangeType<ElemType> HollowBallBound<TMetricType, ElemType>::RangeDistance(
range.Lo() = dist - radii.Hi();
else
{
- // Check if the point is situated in the hole.
+ // Check if the point is situated in the hole.
range.Lo() = math::ClampNonNegative(radii.Lo() -
metric->Evaluate(point, hollowCenter));
}
More information about the mlpack-git
mailing list