gastropy.coupling_zscore#
- gastropy.coupling_zscore(empirical_plv, surrogate_plv)[source]#
Compute z-scored coupling strength (empirical vs. surrogate).
When
surrogate_plvis a scalar or same shape asempirical_plv(fromstat="median"), returns the simple difference. Whensurrogate_plvis a full distribution (fromstat="all"), returns a proper z-score.- Parameters:
- Returns:
z – Z-scored coupling strength. Positive values indicate stronger coupling than expected by chance.
- Return type:
float or np.ndarray
Examples
>>> coupling_zscore(0.3, 0.15) 0.15