en_acceleration: Compute Euclidean norm of sums of acceleration vectors (x,y)

View source: R/en_acceleration.R

en_accelerationR Documentation

Compute Euclidean norm of sums of acceleration vectors (x,y)

Description

Compute Euclidean norm of sums of acceleration vectors (x,y) for a tracked video using the x-axis and y-axis data generated using acceleration_x() and acceleration_y(). This is done using the following formula: sqrt(accelerationx(t+1) - accelerationx(t))^2 + (accelerationy(t+1) - accelerationy(t))^2)

Usage

en_acceleration(acc_x, acc_y)

Arguments

acc_x

Data frame of x-axis acceleration generated by acceleration_x().

acc_y

Data frame of y-axis acceleration generated by acceleration_y().

start_from_zero

Determines if the output should be preceded with a row containing 0.

Examples

en_acceleration(x, y)

trettenbrein/OpenPoseR documentation built on April 22, 2022, 4:03 a.m.