Spike Toolbox

STProfileCount
Bin spikes by a time window, and return the counts

Syntax
[vBinnedCounts] = STProfileCount(stTrain, tTimeWindow) [vBinnedCounts] = STProfileCount(stTrain, tTimeWindow, strLevel)

Description
stTrain is a spike train containing either an instance or a mapping. tTimeWindow specifies the duration in seconds of the time bins that spikes will be lumped into. strLevel optionally specifies whether a spike train instance or mapping will be used, and must be one of {instance, mapping}. STProfileCount will calculate the number of spikes falling into each time bin, and return the results in vBinnedCounts. The format of vBinnedCounts is a column matrix, with each row continaing [time_stamp count]. time_stamp is a real value representing the centre time of each bin. count is the number of spikes falling into each bin.

See STProfileFrequency for calculating binned spiking frequencies. See STProfileCountAddresses for binning spikes from multiplexed mappings.

Note that STProfileCount will count spikes irrespective of individual addresses.

See Also
STProfileFrequency, STProfileCountAddresses


$Id: STProfileCount.html 1783 2005-08-31 21:05:51Z dylan $