classify_magnetometer: Convert magnetometer signal to cardinal direction

Description Usage Arguments See Also Examples

View source: R/Sensor_Functions.R

Description

Convert magnetometer signal to cardinal direction

Usage

1
2
classify_magnetometer(x = "Magnetometer X", y = "Magnetometer Y",
  z = "Magnetometer Z", orientation = "vertical")

Arguments

x

x-axis magnetometer data

y

y-axis magnetometer data

z

z-axis magnetometer data

orientation

the conversion scheme to use, from c("vertical", "horizontal")

See Also

http://s3.amazonaws.com/actigraphcorp.com/wp-content/uploads/2017/11/26205750/ActiGraph_IMU_White_Paper.pdf

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
data(imu_to_collapse)

X <- mean(imu$Magnetometer.X)
Y <- mean(imu$Magnetometer.Y)
Z <- mean(imu$Magnetometer.Z)

TwoRegression:::classify_magnetometer(X, Y, Z)

## End(Not run)

TwoRegression documentation built on May 2, 2019, 6:33 a.m.