The following Matlab project contains the source code and Matlab examples used for mean shift for finding modes. Run plotModes() to see result. Note: 40% generated data is added outlier. Correction: In findModes.m, go to kernelized_weights() function and replace: euclidean_dist = sum(offset.*offset,2) .* inv_bandwidth_sq; with: euclidean_dist = sum(offset.*offset,2);
The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.