Learn R Programming

GGIR (version 2.3-0)

separategravity: Separate gravity from acceleration signal.

Description

Separates gravitational acceleration from the acceleration signal with the help of gyrocope data. Output is a orientation of gravity and acceleration, both within the local (sensor) coordinate system.

Usage

separategravity(acc, gyr, sf)

Arguments

acc

Three column matrix or data.frame with the x, y, z acceleration in g-units

gyr

Three column matrix or data.frame with the x, y, z angule velocity in radians per second

sf

Sample frequency in Hertz

Value

Output of the function is list containing the following objects:

  • acclocal = 3 column matrix with x, y, and z acceleration in g-units

  • gvector = 3 column matrix with x, y, and z coordinates of gravity vector