rubitCalcSpeed: Calculates speed and acceleration from processed tracking...

Description Usage Arguments Value See Also Examples

View source: R/calcSpeed.R

Description

Calculates raw and and smoothed (using a rolling median) speed and acceleration from smoothed tracking data.

Usage

1

Arguments

m

a matrix containing processed tracking data outputted by rubitBasic.

window

the size of the rolling median window used to smooth speed and acceleration, in frames.

Value

The inputted matrix with additional information added for speed (in mm/s) and acceleration (in mm/s^2).

See Also

rubitMetrics to understand the different steps of processing.

Examples

1
2
3
4
data(tenebrio_basic)

### Apply the function over all areas in list
sapply(tenebrio_basic, rubitCalcSpeed, window = 1)

JoGall/rubitrail documentation built on May 7, 2019, 10:53 a.m.