Kmeans clustering mahalanobis distance
7 views (last 30 days)
Show older comments
Can anyone share the code of kmeans clustering that uses mahalanobis distance instead of euclidean distance
0 Comments
Answers (2)
the cyclist
on 17 May 2017
6 Comments
the cyclist
on 17 May 2017
It seems that your current question has been answered here. (Maybe someone else will else also add some other answers, of course.)
I suggest you open a new question now, for specific help on working with the kmedoids function. In that new question, please add more detail, perhaps adding a MAT file with your data, or a small example of what is not working for you. As I mentioned, I am not very familiar with that function, and you might get help from more people with a new question.
白
on 3 Dec 2024
You could try nearestPSD, which could transform your covariance matrix into symmetric and positive definite one, but there is some estimation bias to check.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!