How to modify mdscale such as to deal with non-Euclidean metric?
이전 댓글 표시
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
채택된 답변
추가 답변 (1개)
Adam
2012년 11월 11일
0 개 추천
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!
카테고리
도움말 센터 및 File Exchange에서 Dimensionality Reduction and Feature Extraction에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!