pdist custom distance function.

6 ビュー (過去 30 日間)
giovanni grieco
giovanni grieco 2017 年 3 月 5 日
回答済み: Walter Roberson 2017 年 3 月 5 日
I have to use this distance in the pdist function:
norm((log(cov_1) - log(cov_2)),'fro')
I have already read the pdist documentation but I have not figured out how to define and call my distance in pdist.
someone could help, maybe with an example.

採用された回答

Walter Roberson
Walter Roberson 2017 年 3 月 5 日
distfun = @(cov_1, cov_2) norm((log(cov_1) - log(cov_2)),'fro');
pdist(YourData, distfun)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by