summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Mulansky <mario.mulansky@gmx.net>2014-10-15 11:34:05 +0200
committerMario Mulansky <mario.mulansky@gmx.net>2014-10-15 11:34:05 +0200
commitbaba170fb8d300974de1611e016a98dcc8769563 (patch)
tree1e6ac5f922b3bad93a3a6dd8ec0e86c59bd6db79
parent65801901e6d3325c8d1c82ab92334ca19ebd92d7 (diff)
improved docs
-rw-r--r--pyspike/distances.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/pyspike/distances.py b/pyspike/distances.py
index 08d0ed8..55515f6 100644
--- a/pyspike/distances.py
+++ b/pyspike/distances.py
@@ -17,10 +17,11 @@ from pyspike import PieceWiseConstFunc, PieceWiseLinFunc
# isi_distance
############################################################
def isi_distance(spikes1, spikes2):
- """ Computes the instantaneous isi-distance S_isi (t) of the two given
- spike trains. The spike trains are expected to have auxiliary spikes at the
- beginning and end of the interval. Use the function add_auxiliary_spikes to
- add those spikes to the spike train.
+ """ Computes the isi-distance profile S_isi(t) of the two given spike
+ trains. Retruns the profile as a PieceWiseConstFunc object. The S_isi
+ values are defined in the interval [0,1). The spike trains are expected
+ to have auxiliary spikes at the beginning and end of the interval. Use the
+ function add_auxiliary_spikes to add those spikes to the spike train.
Args:
- spikes1, spikes2: ordered arrays of spike times with auxiliary spikes.
Returns:
@@ -43,10 +44,11 @@ def isi_distance(spikes1, spikes2):
# spike_distance
############################################################
def spike_distance(spikes1, spikes2):
- """ Computes the instantaneous spike-distance S_spike (t) of the two given
- spike trains. The spike trains are expected to have auxiliary spikes at the
- beginning and end of the interval. Use the function add_auxiliary_spikes to
- add those spikes to the spike train.
+ """ Computes the spike-distance profile S_spike(t) of the two given spike
+ trains. Returns the profile as a PieceWiseLinFunc object. The S_spike
+ values are defined in the interval [0,1). The spike trains are expected to
+ have auxiliary spikes at the beginning and end of the interval. Use the
+ function add_auxiliary_spikes to add those spikes to the spike train.
Args:
- spikes1, spikes2: ordered arrays of spike times with auxiliary spikes.
Returns: