ifr-methods: Calculate the instantaneous firing rate from the spike...

Description Usage Arguments Value

Description

The ifr for the periods within the intervals set within the SpikeTrain object will be calculated. A vector with the spike count in each bin is calculated. Then a gaussian kernel is applied to the spike count vector. Finally, the firing probability is integrated over a set window size and transform to a firing rate.

Usage

1
2
3
4
5
ifr(st, windowSizeMs = 100, spikeBinMs = 1, kernelSdMs = 100)

## S4 method for signature 'SpikeTrain'
ifr(st, windowSizeMs = 100, spikeBinMs = 1,
  kernelSdMs = 100)

Arguments

st

SpikeTrain object

windowSizeMs

The window size for each ifr value

spikeBinMs

The bin size for the spike count array

kernelSdMs

Standard deviation of the gaussian kernel used to smooth the spike count vector

Value

SpikeTrain object with the instantaneous firing rate


kevin-allen/relectro documentation built on May 20, 2019, 9:06 a.m.