Description Usage Arguments Value Examples

Calculates the normalized mutual information (NMI) of two community structures in network analysis.

1 | ```
NMI(X,Y)
``` |

`X` |
a data frame or matrix whose first column is the node id and the second column is module |

`Y` |
a data frame or matrix whose first column is the node id and the second column is module |

`value` |
value of NMI |

1 2 3 4 5 6 7 8 9 10 11 | ```
# Suppose X and Y are exactly the same
X<-data.frame(c(1,2,3),c(2,1,1))
Y<-X
# There NMI is 1
NMI(X,Y)
# Suppose X and Y are completely independent
X<-data.frame(c(1,2,3),c(2,1,1))
Y<-data.frame(c(5,6,7),c(2,1,1))
# There NMI is 0
NMI(X,Y)
``` |

```
$value
[1] 1
$value
[1] 0
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.