Customized K-Means

Version (1.74 KB) by Nirmal
Customized K-means where you can choose different initial cluster centroid.


Updated 16 Jul 2012

View License

My implementation of K means algorithm is customized for different need. Initial cluster centroid can be selected in various of ways. Those are:
• Randomly initialized cluster centroid as one of the data row.
• Select first 3 data row was the three cluster center.
• Provide the cluster centroid as a parameter, it is specially helpful when you want to perform the cluster with the same initial data centers so that we don’t have to worry about K means naming different to the same cluster in different run.

Cite As

Nirmal (2023). Customized K-Means (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes