<p>In <a href="https://github.com/mlpack/mlpack/pull/388#discussion_r23583303">src/mlpack/methods/mean_shift/mean_shift.hpp</a>:</p>
<pre style='color:#555'>&gt; + * For each point in dataset, apply mean shift algorithm until maximum 
&gt; + * iterations or convergence. 
&gt; + * Then remove duplicate centroids.
&gt; + * 
&gt; + * A simple example of how to run Mean Shift clustering is shown below.
&gt; + *
&gt; + * @code
&gt; + * extern arma::mat data; // Dataset we want to run Mean Shift on.
&gt; + * arma::Col&lt;size_t&gt; assignments; // Cluster assignments.
&gt; + * arma::mat centroids; // Cluster centroids.
&gt; + *
&gt; + * MeanShift&lt;arma::mat, kernel::GaussianKernel&gt; meanShift();
&gt; + * meanShift.Cluster(dataset, assignments, centroids);
&gt; + * @endcode
&gt; + *
&gt; + * @tparam KernelType the kernel to use.
</pre>
<p>Mean shift will not work with every type of kernel (i.e. it will not work with the linear kernel or the polynomial kernel or other kernels that are not shift-invariant and normalized).  We should make sure that the user knows that only certain kernels can be used.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/pull/388/files#r23583303">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFCYeCF1A8zN81e7YD6svLR4T8n7Kks5nlu7WgaJpZM4DTzb1.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#r23583303"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>