Integrates torque over time to obtain angular impulse and, when angle or angular velocity is available, integrates torque over angular displacement to obtain mechanical work.
Usage
contractionWork(
torque,
sampling_rate,
angle = NULL,
angular_velocity = NULL,
reps = NULL,
onset_threshold = 7.5,
body_mass = NULL
)Arguments
- torque
Numeric torque trace in N m.
- sampling_rate
Sampling rate in Hz.
- angle
Optional angle trace in degrees.
- angular_velocity
Optional angular-velocity trace in degrees/s, used when
angleis not supplied.- reps
Optional named list of strictly increasing integer sample-index vectors. When
NULL, repetitions are segmented withcomputeImpulse().- onset_threshold
Non-negative torque threshold used for automatic repetition segmentation.
- body_mass
Optional positive body mass in kg.
Value
A contraction_work data frame with angular impulse (N m s), work
(J), and optional mass-normalised values for each repetition.