netneurotools.metrics.network_variance_numba
- netneurotools.metrics.network_variance_numba(vec, D)[source]
Numba version of
netneurotools.stats.network_variance()
.Network variance is a measure of variance taken into account the network structure.
Warning
Test before use.
- Parameters:
vec ((N,) array_like) – Input vector. Must be all positive. Will be normalized internally as a probability distribution.
D ((N, N) array_like) – Distance matrix.
- Returns:
network_variance – Network variance of vec on D
- Return type: