K-means algorithm demo

A simple implementation of the kmeans algorithm
10,7K Downloads
Aktualisiert 1. Jul 2016

Lizenz anzeigen

The k-means algorithm is widely used in a number applications like speech processing and image compression.
This script implements the algorithm in a simple but general way. It performs four basic steps.
1. Define k arbitrary prototypes from the data samples.
2. Assign each sample to the nearest prototype.
3. Recalculate prototypes as arithmetic means.
4. If a prototype changes, repeat step (2).

Zitieren als

Mauricio Martinez-Garcia (2024). K-means algorithm demo (https://www.mathworks.com/matlabcentral/fileexchange/16762-k-means-algorithm-demo), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2006b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.2.0

Changes for 1.0.2
- Added calculation of class membership.

1.0.1.0

1.0.1 Added BSD license.

1.0.0.0

Filename clash fixed