hamSim {mnem} | R Documentation |
This function uses the hamming distance to calculate an accuracy for two networks (phi).
hamSim(a, b, diag = 1, symmetric = TRUE)
a |
adjacency matrix (phi) |
b |
adjacency matrix (phi) |
diag |
if 1 includes diagonal in distance, if 0 not |
symmetric |
comparing a to b is asymmetrical, if TRUE includes comparison b to a |
normalized hamming accuracy for a and b
Martin Pirkl
sim <- simData(Sgenes = 3, Egenes = 2, Nems = 2, mw = c(0.4,0.6)) similarity <- hamSim(sim$Nem[[1]], sim$Nem[[2]])