getDiceCoeff(A,B)

Compute Dice Coefficient
193.0 次下载
更新时间 2017/5/16

查看许可证

call:

DC = getDiceCoeff(A,B)

Compute the Dice Coefficient, a measure of similarity between two binary (0,1) vector-sets A, B.
E.g. to compute the DC between two network community partitions, first assign each
link to the corresponding community (e.g. using 'getCommunityMatrix.m'), then binarize the cor-
responding matrix, extract the sub-diagonal elements in form of a vector. These vectors are the
required inputs, A and B.

Between others, alternative measures of similarity between sets are:

- Normalized Mutual Information ('getNMI.m')
- Jaccard Index ('getJaccard.m')

INPUT

A : Binary vector of set A
B : Binary vector of set B

OUTPUT

DC : Dice Coefficient

引用格式

Ruggero G. Bettinardi (2024). getDiceCoeff(A,B) (https://www.mathworks.com/matlabcentral/fileexchange/62973-getdicecoeff-a-b), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Test and Measurement 的更多信息
社区

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0