<p>In <a href="https://github.com/mlpack/mlpack/pull/388#discussion_r23590369">src/mlpack/methods/mean_shift/mean_shift_main.cpp</a>:</p>
<pre style='color:#555'>&gt; +  }
&gt; +  
&gt; +  // Make sure we have an output file if we&#39;re not doing the work in-place.
&gt; +  if (!CLI::HasParam(&quot;in_place&quot;) &amp;&amp; !CLI::HasParam(&quot;output_file&quot;) &amp;&amp;
&gt; +      !CLI::HasParam(&quot;centroid_file&quot;)) {
&gt; +    Log::Warn &lt;&lt; &quot;--output_file, --in_place, and --centroid_file are not set; &quot;
&gt; +    &lt;&lt; &quot;no results will be saved.&quot; &lt;&lt; std::endl;
&gt; +  }
&gt; +  
&gt; +  arma::mat dataset;
&gt; +  data::Load(inputFile, dataset, true); // Fatal upon failure.
&gt; +  arma::mat centroids;
&gt; +  arma::Col&lt;size_t&gt; assignments;
&gt; +  
&gt; +  kernel::GaussianKernel kernel;
&gt; +  kernel.Bandwidth(bandwidth);
</pre>
<p>Because the bandwidth is a param of Gaussian kernel, not the param of MeanShift class. In the executable program, I don't provide param to choose kernel, the executable can only use Gaussian kernel, and there is a param to set the bandwidth of Gaussian kernel in the executable. But advanced user can use their own kernel by using class MeanShift.</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#r23590369">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFAq7USK1C-xJpimzSTcfOCIZaTyeks5nlzAogaJpZM4DTzb1.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#r23590369"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>