hamSim: Accuracy for two phis.

Description Usage Arguments Value Author(s) Examples

View source: R/mnems.r

Description

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

Usage

1
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

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

Example output

Registered S3 methods overwritten by 'RcppEigen':
  method               from         
  predict.fastLm       RcppArmadillo
  print.fastLm         RcppArmadillo
  summary.fastLm       RcppArmadillo
  print.summary.fastLm RcppArmadillo

mnem documentation built on Nov. 18, 2020, 2 a.m.