[mlpack-git] [mlpack] Mean shift clustering (#388)

Stephen Tu notifications at github.com
Mon Jan 26 22:08:12 EST 2015


> + * 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.

Maybe kernels can be tagged "translation_invariant" as a type trait? Then you can enforce this at compile time

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/388/files#r23584560
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150126/f0ec1e30/attachment.html>


More information about the mlpack-git mailing list