We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d6c16c commit f8cb320Copy full SHA for f8cb320
neurodsp/rhythm/phase.py
@@ -86,7 +86,7 @@ def pairwise_phase_consistency(pha0, pha1, return_pairs=True, memory_gb=2, progr
86
for idx, pair in iterable:
87
88
# Absolute angular distance
89
- abs_dist = np.abs(pha0[pair[0]] - pha1[pair[1]]) % np.pi
+ abs_dist = np.abs(pha0[pair[0]] - pha1[pair[1]]) % (2 * np.pi)
90
91
# Pairwise circular distance index (PCDI)
92
distance = (np.pi - 2 * abs_dist) / np.pi
0 commit comments