setPositrack-methods: set position values from arguments

Description Usage Arguments Value

Description

This function also use the .res_samples_per_whl_sample, .sampling_rate_dat and .px_per_cm files

Usage

1
2
3
4
5
setPositrack(pt, pxX, pxY, hd, resSamplesPerWhlSample, samplingRateDat, pxPerCm)

## S4 method for signature 'Positrack'
setPositrack(pt, pxX, pxY, hd, resSamplesPerWhlSample,
  samplingRateDat, pxPerCm)

Arguments

pt

Positrack object

pxX

Numeric with the x position of animal. x is in pixels. invalid is -1.0

pxY

Numeric with the y position of animal. y is in pixels. invalid is -1.0

hd

Numeric with the head direction of animal in degrees. invalid is -1.0

resSamplesPerWhlSample

Number of electrophysiological samples per position sample

samplingRateDat

Sampling rate of electrophysiological data

pxPerCm

Number of pixels per cm

Value

Positrack object


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