diff options
author | Mario Mulansky <mario.mulansky@gmx.net> | 2015-08-17 17:19:18 +0200 |
---|---|---|
committer | Mario Mulansky <mario.mulansky@gmx.net> | 2015-08-17 17:19:18 +0200 |
commit | 84f3333317e119cc87c4cb5f9c444ff66f1f7a23 (patch) | |
tree | 7d5fc73de61fd124f93f24c588700f25ffe896c6 /pyspike/directionality/cython/cython_directionality.pyx | |
parent | 0d7255c1fb7398720de10653efee617075c30892 (diff) |
first unit tests for directionality
Diffstat (limited to 'pyspike/directionality/cython/cython_directionality.pyx')
-rw-r--r-- | pyspike/directionality/cython/cython_directionality.pyx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyspike/directionality/cython/cython_directionality.pyx b/pyspike/directionality/cython/cython_directionality.pyx index 00e3b86..3936372 100644 --- a/pyspike/directionality/cython/cython_directionality.pyx +++ b/pyspike/directionality/cython/cython_directionality.pyx @@ -198,7 +198,7 @@ def spike_delay_asymmetry_cython(double[:] spikes1, double[:] spikes2, # coincidence between the current spike and the previous spike # spike in spike train 2 appeared before spike in spike train 1 # mark with -1 - asym -= 1 + asym -= 2 elif (j < N2-1) and (i == N1-1 or spikes1[i+1] > spikes2[j+1]): j += 1 mp += 1 @@ -207,7 +207,7 @@ def spike_delay_asymmetry_cython(double[:] spikes1, double[:] spikes2, # coincidence between the current spike and the previous spike # spike in spike train 1 appeared before spike in spike train 2 # mark with +1 - asym += 1 + asym += 2 else: # spikes1[i+1] = spikes2[j+1] # advance in both spike trains j += 1 |