diff options
author | Mario Mulansky <mario.mulansky@gmx.net> | 2015-05-08 12:29:47 +0200 |
---|---|---|
committer | Mario Mulansky <mario.mulansky@gmx.net> | 2015-05-08 12:29:47 +0200 |
commit | 619ffd7105203938a26075c79a77d63960da9922 (patch) | |
tree | 8809df98f9b5c8863398024a49ad5c88f8a62cd9 /pyspike/cython | |
parent | f44d78a5f0b4ab25bb443accdcb9fc1bd8ff57da (diff) |
renamed cython_distance module -> cython_profiles
Diffstat (limited to 'pyspike/cython')
-rw-r--r-- | pyspike/cython/cython_profiles.pyx (renamed from pyspike/cython/cython_distance.pyx) | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/pyspike/cython/cython_distance.pyx b/pyspike/cython/cython_profiles.pyx index 6ee0181..59a8d30 100644 --- a/pyspike/cython/cython_distance.pyx +++ b/pyspike/cython/cython_profiles.pyx @@ -3,9 +3,9 @@ #cython: cdivision=True """ -cython_distances.pyx +cython_profiles.pyx -cython implementation of the isi- and spike-distance +cython implementation of the isi-, spike- and spike-sync profiles Note: using cython memoryviews (e.g. double[:]) instead of ndarray objects improves the performance of spike_distance by a factor of 10! @@ -20,11 +20,11 @@ Distributed under the BSD License To test whether things can be optimized: remove all yellow stuff in the html output:: - cython -a cython_distance.pyx + cython -a cython_profiles.pyx which gives:: - cython_distance.html + cython_profiles.html """ @@ -40,10 +40,10 @@ ctypedef np.float_t DTYPE_t ############################################################ -# isi_distance_cython +# isi_profile_cython ############################################################ -def isi_distance_cython(double[:] s1, double[:] s2, - double t_start, double t_end): +def isi_profile_cython(double[:] s1, double[:] s2, + double t_start, double t_end): cdef double[:] spike_events cdef double[:] isi_values @@ -173,10 +173,10 @@ cdef inline double isi_avrg_cython(double isi1, double isi2) nogil: ############################################################ -# spike_distance_cython +# spike_profile_cython ############################################################ -def spike_distance_cython(double[:] t1, double[:] t2, - double t_start, double t_end): +def spike_profile_cython(double[:] t1, double[:] t2, + double t_start, double t_end): cdef double[:] spike_events cdef double[:] y_starts @@ -342,7 +342,7 @@ def spike_distance_cython(double[:] t1, double[:] t2, ############################################################ -# coincidence_python +# get_tau ############################################################ cdef inline double get_tau(double[:] spikes1, double[:] spikes2, int i, int j, double max_tau): @@ -364,10 +364,10 @@ cdef inline double get_tau(double[:] spikes1, double[:] spikes2, ############################################################ -# coincidence_cython +# coincidence_profile_cython ############################################################ -def coincidence_cython(double[:] spikes1, double[:] spikes2, - double t_start, double t_end, double max_tau): +def coincidence_profile_cython(double[:] spikes1, double[:] spikes2, + double t_start, double t_end, double max_tau): cdef int N1 = len(spikes1) cdef int N2 = len(spikes2) |