firingRateMap2d-methods: Calculate the firing rate maps of neurons using a SpikeTrain...

Description Usage Arguments Value

Description

The occupancy map and the firing rate maps are smoothed with a Gaussian kernel. The amount of smoothing is determined by slots smoothOccupancySd and smoothRateMapSd of sp. You can force the function to create maps with arbitrary x and y sizes as long as the map fits into this arbitrary size.

Usage

1
2
3
4
5
firingRateMap2d(sp, st, pt, nRowMap = NA, nColMap = NA)

## S4 method for signature 'SpatialProperties2d'
firingRateMap2d(sp, st, pt, nRowMap = NA,
  nColMap = NA)

Arguments

sp

SpatialProperties1d object

st

SpikeTrain object

pt

Positrack object

nRowMap

Numeric indicating the number of rows in the map. By default the maps has the smallest size possible given the position data in the Positrack object. Use this argument to have maps of a fixed size. Needs to be as large as the minimal size of the map

nColMap

Numeric indicating the number of columns in the map. By default the maps has the smallest size possible given the position data in the Positrack object. Use this argument to have maps of a fixed size. Needs to be as large as the minimal size of the map

Value

SpatialProperties2d object with the firing rate maps


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