Mean shift for finding modes
Version 1.2.0.0 (4.66 KB) by
Soumitry J Ray
The submission finds modes in data. Data is generated from a mixture of gaussian with added outliers
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);
Cite As
Soumitry J Ray (2026). Mean shift for finding modes (https://www.mathworks.com/matlabcentral/fileexchange/39079-mean-shift-for-finding-modes), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2012b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
