How to modify mdscale such as to deal with non-Euclidean metric?
Mostra commenti meno recenti
I would like to do non-metric multi-dimensional scaling with non-Euclidean metric. That is: the distances in the configuration should be calculated with a p-norm, where p is not necessarily equal to 2. I looked into the source code of mdscale but it seems I am not clever enough to identify the lines that I would have to change. Though it might be quite easy, given that "norm" is able to calculate any type of p-norm, not only the Euclidean one. Hopefully it is one of these calls to norm and I would only have to add a parameter there. If this is not the place where such a question should be asked then please tell me where I should ask this question.
Thanks, Chris
Risposta accettata
Più risposte (1)
Adam
il 11 Nov 2012
0 voti
Hi. I am running mdscale on a dissimilarity matrix that includes some NaNs as I only know the distance between certain vertices. However, I also want to impose a minimum distance limit such that no two points are closer than this value. Is this possible? Thanks!
Categorie
Scopri di più su Creating, Deleting, and Querying Graphics Objects in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!