Gaussian Mixture Model cluster order

Hello,
I am using Gaussian Mixture Model to separate my data into 2 clusters, let's say "high" and "low". I have different files. It says here that "If you cluster several fitted gmdistribution models, cluster can assign different cluster labels for similar components.". My question is: Is there a way to always get Cluster1 to be "high" and Cluster2 to be "low", for all the data? In other words, how can I get similar cluster labels for similar components?
Thanks!

 Accepted Answer

the cyclist
the cyclist on 18 Mar 2021
I think you'll need a bit of programming to do that. Specifically, fitgmdist will output a model object, and the model object will have the gaussian means as properties. You'll need to find which one is larger, and label your clusters accordingly. I don't think you can rely on MATLAB to report the means in a particular order.

More Answers (0)

Products

Release

R2021a

Asked:

on 18 Mar 2021

Answered:

on 18 Mar 2021

Community Treasure Hunt

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

Start Hunting!