inv_axis {tagtools}R Documentation

Identify invariant axis in triaxial movement measurements.

Description

This function processes tri-axial movement data (for example, from an accelerometer, magentometer or gyroscope) to identify the one axis that varies the least, i.e., the invariant axis.

Usage

inv_axis(data)

Arguments

data

The triaxial sensor measurement axis e.g., from on accelerometer or magnetometer. The frame and unit of A do not matter.

Details

Rotational and linear movement in some types of propulsion largely occur in 2 dimensions e.g., body rotation in cetacean caudal propulsion occurs around the animal's transverse axis. Likewise sychronized wing flaps in flight or pectoral swimming may generate acceleration in the longitudinal and dorso-ventral axes but much less in the transverse axis. This function identifies the direction of the axis that moves the least in a movement matrix.

Value

A list with two entries:

Note

This function returns one invariant axis that applies to the entire input signal so it is important to choose a relevant sub-sample of movement data, A, to analyse.

Examples

 s <- matrix(sin( 2 * pi * 0.1 * c(1:100)), ncol=1)
 A <- s %*% c(0.9, -0.4, 0.3) + s^2 %*% c(0, 0.2, 0.1)
 inv_axis_out <- inv_axis(A)
 

[Package tagtools version 0.1.0 Index]