s14 {cssTools} | R Documentation |
Calculate s14 Similarity Index
Description
Computes the S_{14}
similarity index between two network matrices.
Usage
s14(d1, d2)
Arguments
d1 |
An |
d2 |
An |
Details
Given two networks of interest, a common measure of similarity is the S_{14}
index introduced by Gower and Lagendre (1986). The function s14
computes this similarity
measure for two networks having the same dimensions.
Value
The S_{14}
similarity index.
Author(s)
Deniz Yenigun, Gunes Ertan, Michael Siciliano
References
Gower, J.C., Legendre, P. (1986). Metric and Euclidean properties of dissimilarity coefficients. Journal of Classification, 3, 5-48. http://dx.doi.org/10.1007/BF01896809
See Also
Examples
# Consider two matrices representing networks, d1 and d2
d1=matrix(c(0,0,1,0,1,0,0,1,0,0,1,1,0,0,0,0,0,0,0,0,1,0,0,0,0),5,5)
d2=matrix(c(0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,1,1,0,0),5,5)
# The similarity index between d1 and d2
s14(d1,d2)
[Package cssTools version 1.0 Index]