Can I use the Matlab function called "dice" to compare two histograms (or discrete probability distributions)?
5 ビュー (過去 30 日間)
古いコメントを表示
Can I use the Matlab function called "dice" (i.e. the "Sørensen-Dice similarity coefficient for image segmentation") to compare two histograms (or discrete probability distributions)?
similarity = dice(hist1,hist2)
0 件のコメント
採用された回答
John D'Errico
2023 年 7 月 12 日
No. Use of the dice function to compare hisograms would be a complete misuse of the tool. Instead, you might better use tools from statistics that are designed for the purpose of comparing two distributions.
So perhaps a Kolmogorov-Smirnov test. You could use kstest2 to decide if the two underlying samples that were used to generate the histograms come from the same distributions.
その他の回答 (1 件)
Malay Agarwal
2023 年 7 月 12 日
編集済み: Malay Agarwal
2023 年 7 月 12 日
Hi Sim
I am not sure if the dice function can be used to compare two histograms, but you can use the function pdist2 to get a similarlity score between the histograms. Please refer to this MATLAB answer: comparison of two histograms using pdist2 - MATLAB Answers - MATLAB Central (mathworks.com).
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Categorical Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!