How does pdist2 work?
古いコメントを表示
I am really confused. I have a matrix A=
1 2
3 4
I want to calculate dissimilarity. So I came to know that i could use euclidean to find.
pdist2(A,A)
gives me
0 2.828
2.828 0
But If I calculate manually I am getting
0 1.414
1.414 0
Why the result is multiplied by 2?
採用された回答
その他の回答 (1 件)
Marcela Mantilla
2019 年 8 月 26 日
1 投票
Buenas tardes¡¡ Como se interpretan los resultados de una matriz obtenida de la función pdist2. Muchas gracias.
1 件のコメント
Walter Roberson
2019 年 8 月 26 日
編集済み: Walter Roberson
2019 年 8 月 26 日
results(J, K) = distance between the point represented by row J of the first input and point represented by row K of the second input.
カテゴリ
ヘルプ センター および File Exchange で Statistics and Machine Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!