Skip to contents

Calculate Fraction of Loaded Sensors Per Frame

Usage

pr_calc_loaded_rate(trial, threshold = 0)

Arguments

trial

A pr_trial object.

threshold

Numeric. Default 0.

Value

Numeric vector in [0, 1] of length n_frames.

Examples

trial <- pr_example_trial("insole")
rate <- pr_calc_loaded_rate(trial, threshold = 5)
all(rate >= 0 & rate <= 1)
#> [1] TRUE