How to modify mdscale such as to deal with non-Euclidean metric?
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
Adam
el 11 de Nov. de 2012
0 votos
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!
Categorías
Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!