normalizeToDuration: Normalize a Measure to Track Duration

View source: R/functions.R

normalizeToDurationR Documentation

Normalize a Measure to Track Duration

Description

Returns a measure that divides the input measure by the duration of its input track.

Usage

normalizeToDuration(x)

Arguments

x

a track measure (see TrackMeasures).

Value

A function that computes the input measure for a given track and returns the result divided by the track's duration.

Examples

## normalizeToDuration(displacement) can be used as an indicator
## for the motion's efficiency
sapply(TCells, normalizeToDuration(displacement))

celltrackR documentation built on March 21, 2022, 5:06 p.m.