hamSim {mnem} | R Documentation

## Accuracy for two phis.

### Description

This function uses the hamming distance to calculate an accuracy for two networks (phi).

### Usage

    hamSim(a, b, diag = 1, symmetric = TRUE)

### Arguments

`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

### Value

normalized hamming accuracy for a and b

### Author(s)

Martin Pirkl

### Examples

    sim <- simData(Sgenes = 3, Egenes = 2, Nems = 2, mw = c(0.4,0.6))
    similarity <- hamSim(sim$Nem[[1]], sim$Nem[[2]])

[Package mnem version 1.8.0 Index]