Vector quantisation demonstration

A simple demonstration of vector quantisation
181 Downloads
Updated 29 Sep 2014

View License

Starting with 4 random points this program demonstrates vector quantisation.
1. First 4 random points are chosen as cluster means.
2. Then we find the cluster mean that is closest to a given point and allocate it to that corresponding cluster. Here, we can set the limits on the trust region (based on Euclidean distance). Say, points which are less than euclidean distance of 2 from a cluster mean belong to this particular cluster.
3. Once the allocation is complete we go on to calculate the next set of cluster means.
4. This is again followed by another round of allocation. We can see how the the clusters and the cluster means change over iterations.
5. I have set the number of iterations at 15. This is just to show how the allocation freezes after a while, once the optimum cluster centres are identified.

Cite As

Aryaa Ravieshancar (2024). Vector quantisation demonstration (https://www.mathworks.com/matlabcentral/fileexchange/47948-vector-quantisation-demonstration), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.1.0.0

Updated the description section

1.0.0.0