<p>In <a href="https://github.com/mlpack/mlpack/pull/388#discussion_r23584560">src/mlpack/methods/mean_shift/mean_shift.hpp</a>:</p>
<pre style='color:#555'>> + * For each point in dataset, apply mean shift algorithm until maximum
> + * iterations or convergence.
> + * Then remove duplicate centroids.
> + *
> + * A simple example of how to run Mean Shift clustering is shown below.
> + *
> + * @code
> + * extern arma::mat data; // Dataset we want to run Mean Shift on.
> + * arma::Col<size_t> assignments; // Cluster assignments.
> + * arma::mat centroids; // Cluster centroids.
> + *
> + * MeanShift<arma::mat, kernel::GaussianKernel> meanShift();
> + * meanShift.Cluster(dataset, assignments, centroids);
> + * @endcode
> + *
> + * @tparam KernelType the kernel to use.
</pre>
<p>Maybe kernels can be tagged "translation_invariant" as a type trait? Then you can enforce this at compile time</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/pull/388/files#r23584560">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFKV93tZ0wnMhA2y3Q8DmcZ66Hyawks5nlvicgaJpZM4DTzb1.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/mlpack/mlpack/pull/388/files#r23584560"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>