diff options
author | Mario Mulansky <mario.mulansky@gmx.net> | 2016-02-03 13:07:26 +0100 |
---|---|---|
committer | Mario Mulansky <mario.mulansky@gmx.net> | 2016-02-03 13:07:26 +0100 |
commit | b09561705ab9c67c93a384248f7c3bc9ad5bdd32 (patch) | |
tree | 077648ff6011c0ad48114d01f65e755223f0827a /pyspike/cython/cython_distances.pyx | |
parent | 2f48f27b55f63726216b6e674fb88b3790b59147 (diff) |
fixed spike-sync bug
fixed ugly bugs in code for computing multi-variate spike sync profile and
multi-variate spike sync value.
Diffstat (limited to 'pyspike/cython/cython_distances.pyx')
-rw-r--r-- | pyspike/cython/cython_distances.pyx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/pyspike/cython/cython_distances.pyx b/pyspike/cython/cython_distances.pyx index 7dc9cb9..ac5f226 100644 --- a/pyspike/cython/cython_distances.pyx +++ b/pyspike/cython/cython_distances.pyx @@ -428,9 +428,4 @@ def coincidence_value_cython(double[:] spikes1, double[:] spikes2, mp += 2 coinc += 2 - if coinc == 0 and mp == 0: - # empty spike trains -> spike sync = 1 by definition - coinc = 1 - mp = 1 - return coinc, mp |