Mean of loaded sensors per frame (sensors at or below threshold
are excluded).
Arguments
- trial
A pr_trial object.
- threshold
Numeric. Sensors at or below this value are treated as unloaded and excluded. Default
0.
Examples
trial <- pr_example_trial("insole")
mp <- pr_calc_mean_pressure(trial)
length(mp) == trial$n_frames
#> [1] TRUE
summary(mp)
#> Min. 1st Qu. Median Mean 3rd Qu. Max.
#> 0.000 0.000 4.897 26.121 38.663 128.318