Integrates pressure over time for each sensor using the trapezoidal rule. Result is in the measurement unit multiplied by seconds. Overflowing endpoint sums use a finite midpoint calculation. Unrepresentable interval areas or totals raise an error instead of returning infinity.
Arguments
- trial
A pr_trial object.
Examples
trial <- pr_example_trial("insole")
pti <- pr_calc_pti(trial)
length(pti) == trial$n_sensors
#> [1] TRUE
max(pti)
#> [1] 511.0623