Multichannel Systems NeuroExplorer User Manual
Page 109
Variable
Variable name.
Reference
The name of the reference event.
NumRefEvents
The number of reference events.
YMin
Minimum epoch count for this variable.
YMax
Maximum epoch count for this variable.
Filter Length
The length of the interval filter.
Algorithm
Let ref[i] be the array of timestamps of the reference event, ts[i] be the spike train (each ts is the
timestamp) and epochs are specified as EpochStart[j], EpochEnd[j].
For each timestamp ref[k]:
1) calculate the distances from this event (or spike) to all the spikes in the spike train:
d[i] = ts[i] - ref[k]
2) for each i:
if d[i] is inside the first epoch, increment the counter for the first epoch:
if d[i] >= EpochStart[1] and d[i] < EpochEnd[1]
then epochcount[1] = epochcount[1] +1
if d[i] is inside the second epoch, increment the counter for the second epoch:
if d[i] >= EpochStart[2] and d[i] < EpochEnd[2]
then epochcount[2] = epochcount[2] +1
and so on... .
Page 107