speedRateTuningCurve-methods: Speed-rate tuning curve from spike train and positrack

Description Usage Arguments Value

Description

Uses the ifr of cells to calculate the mean firing rate of neurons for different speed bands. You need to call ifr() on the st object first.

Usage

1
2
3
4
5
6
speedRateTuningCurve(sp, st, pt, minSpeed, maxSpeed, angular = FALSE,
  binSize = 5, maxBin = 30)

## S4 method for signature 'SpatialProperties2d'
speedRateTuningCurve(sp, st, pt, minSpeed = 2,
  maxSpeed = 100, angular = FALSE, binSize = 5, maxBin = 30)

Arguments

sp

SpatialProperties2d object

st

SpikeTrain object with ifr

pt

Positrack object

minSpeed

Minimal speed to be considered

maxSpeed

Maximal speed to be considered

angular

Logical, if TRUE then angular velocity is used instead of running speed

binSize

Size of the bins in the tuning curve

maxBin

Maximum speed in the tuning curve

Value

data.frame with the speed-rate tuning curves


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