Spike Toolbox |
![]() ![]() |
STProfileFrequencyAddresses
Calculate a frequency profile from a mapped spike train, for each address
Syntax
[vInstFrequency, vKey] = STProfileFrequencyAddresses(stMappedTrain, tTimeWindow)
Description
stTrain
is a spike train containing a mapping.
tTimeWindow
specifies the duration in seconds of the time bins that spikes
will be lumped into. STProfileFrequency will calculate the spike train frequency for each bin.
These frequencies will be returned in vInstFrequency
. The format of each row will be
[time_stamp frequency1 frequency2 ...]
. time_stamp
is a real value representing the median time of each bin. frequencyN
is the average frequency of a single neuron during each time bin, in Hz
. Each row in vKey
gives the address of the
neuron corresponding to one of the columns in vInstFrequency
. For
example, vKey(1)
is the address of the neuron corresponding to
frequency1
in vInstFrequency
.
Note that STProfileFrequencyAddresses will skip neurons with no spikes
in stMappedTrain
. Don't rely on the order of vKey
being
monotonically increasing.
See Also
STProfileCountAddresses,
STProfileFrequency
![]() |
STPSTimeHist
![]() |