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.

## Project Files:

File Name | Size |
---|---|

license.txt | 1314 |

findModes.m | 6131 |

generateData.m | 1805 |

plotData.m | 1546 |

plotModes.m | 1793 |