speedScore-methods: Speed scores from spike train and positrack

Description Usage Arguments Value

Description

Speed scores from spike train and positrack

Usage

1
2
3
4
5
speedScore(sp, st, pt, minSpeed, maxSpeed, angular = F, runLm = F)

## S4 method for signature 'SpatialProperties2d'
speedScore(sp, st, pt, minSpeed = 2,
  maxSpeed = 100, angular = F, runLm = F)

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 will use the angular velocity of the head instead of running speed

runLm

Logical, if TRUE a linear model will be build and slope and intercept calculated

Value

SpatialProperties2d object with the speed scores in the slots SpeedScore. If runLm argument was TRUE, then speedRateSlope and peedRateIntercept will also be filled The analysis only use period withing the intervals of the SpikeTrain object The function ifr() should be called prior to calling speedScore()


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