How to group points (xy coordinates)

3 visualizzazioni (ultimi 30 giorni)
Luís Amaral
Luís Amaral il 17 Apr 2015
Modificato: Luís Amaral il 17 Apr 2015
Hi, I'm using kmeans to group a random number of points in a xy axis.
Is there any way of doing it but limiting the number of points per group. I mean, if I want 2 groups of points but in my xy axis I have like 100 points close to each other and another 20 points far away from the other 100 points. If I run kmeans function, it will probably join the 100 points and the 20 points in two different groups and I would like to limit the number of points, for example, by 80.
Is it possible to do?
Thank you very much

Risposte (0)

Categorie

Scopri di più su Statistics and Machine Learning Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by