netneurotools.modularity.zrand
- netneurotools.modularity.zrand(X, Y)[source]
Calculate the z-Rand index of two community assignments.
- Parameters:
X, Y ((n, 1) array_like) – Community assignment vectors to compare
- Returns:
z_rand – Z-rand index
- Return type:
References
Amanda L. Traud, Eric D. Kelsic, Peter J. Mucha, and Mason A. Porter. (2011). Comparing Community Structure to Characteristics in Online Collegiate Social Networks. SIAM Review, 53, 526-543.