diff options
author | Mario Mulansky <mario.mulansky@gmx.net> | 2014-10-10 17:04:04 +0200 |
---|---|---|
committer | Mario Mulansky <mario.mulansky@gmx.net> | 2014-10-10 17:04:04 +0200 |
commit | a769a03d089ac0c61e2155239a28665c9316e14a (patch) | |
tree | 766347541743aab1baeb07e9d75d008981c553d6 /pyspike/distances.py | |
parent | 62f792fa52801234d4f9c33800a44b0308e9b8ab (diff) |
added load_txt function, some restructuring
Diffstat (limited to 'pyspike/distances.py')
-rw-r--r-- | pyspike/distances.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/pyspike/distances.py b/pyspike/distances.py index f78c0d4..da603ad 100644 --- a/pyspike/distances.py +++ b/pyspike/distances.py @@ -12,31 +12,6 @@ from pyspike import PieceWiseConstFunc, PieceWiseLinFunc ############################################################ -# add_auxiliary_spikes -############################################################ -def add_auxiliary_spikes( spike_train, T_end , T_start=0.0): - """ Adds spikes at the beginning (T_start) and end (T_end) of the - observation interval. - Args: - - spike_train: ordered array of spike times - - T_end: end time of the observation interval - - T_start: start time of the observation interval (default 0.0) - Returns: - - spike train with additional spikes at T_start and T_end. - - """ - assert spike_train[0] >= T_start, \ - "Spike train has events before the given start time" - assert spike_train[-1] <= T_end, \ - "Spike train has events after the given end time" - if spike_train[0] != T_start: - spike_train = np.insert(spike_train, 0, T_start) - if spike_train[-1] != T_end: - spike_train = np.append(spike_train, T_end) - return spike_train - - -############################################################ # isi_distance ############################################################ def isi_distance(spikes1, spikes2): |