Can recognize what distance is this ?
2 ビュー (過去 30 日間)
古いコメントを表示

Can anyone explain me what does this code do,
Could it be the after first if is calculated euclodean distance and in else there is second distance called mahalanobis distance ?
0 件のコメント
採用された回答
Walter Roberson
2020 年 11 月 13 日
The clue is in the name of the variable: useL1Distance . If it is true, then the L1 norm is used, which is also called "taxi-cab distance".
If it is false, then the L2 norm is used, which is also called Euclidean distance.
Neither branch has anything to do with maholonobis distance.
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Class Introspection and Metadata についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!