[mlpack-git] master: Set radius in initialization list. (51248e4)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Wed Apr 29 14:43:41 EDT 2015


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

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/ee384655c4462e422e343e9725437fd772ca4449...182d4a629c1b23f683dff7b284844e4e3e9f5cc4

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

commit 51248e4fdf11287a3fb1dc345eecb591e6e8c1b2
Author: Ryan Curtin <ryan at ratml.org>
Date:   Fri Mar 27 17:38:25 2015 +0000

    Set radius in initialization list.


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

51248e4fdf11287a3fb1dc345eecb591e6e8c1b2
 src/mlpack/methods/mean_shift/mean_shift_impl.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mlpack/methods/mean_shift/mean_shift_impl.hpp b/src/mlpack/methods/mean_shift/mean_shift_impl.hpp
index a5ee382..040a115 100644
--- a/src/mlpack/methods/mean_shift/mean_shift_impl.hpp
+++ b/src/mlpack/methods/mean_shift/mean_shift_impl.hpp
@@ -28,9 +28,9 @@ MeanShift<KernelType, MatType>::MeanShift(const double radius,
                                           const KernelType kernel) :
     maxIterations(maxIterations),
     kernel(kernel),
+    radius(radius)
 {
-  // Set the radius; estimate if needed.
-  Radius(radius);
+  // Nothing to do.
 }
 
 template<typename KernelType, typename MatType>



More information about the mlpack-git mailing list