Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/get_walk_features.R
A convenience wrapper for extracting interpretable features from the walk activity measured using smartphone raw accelerometer and gyroscope sensors.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | get_walk_features(
accelerometer_data = NULL,
gyroscope_data = NULL,
gravity_data = NULL,
time_filter = NULL,
detrend = F,
frequency_filter = NULL,
IMF = 2,
window_length = NULL,
window_overlap = NULL,
derived_kinematics = F,
funs = NULL,
models = NULL
)
|
accelerometer_data |
An |
gyroscope_data |
An |
gravity_data |
An |
time_filter |
A length 2 numeric vector specifying the time range
of measurements to use during preprocessing and feature extraction after
normalizing the first timestamp to 0. A |
detrend |
A logical value indicating whether to detrend the signal. By default the value is FALSE. |
frequency_filter |
A length 2 numeric vector specifying the frequency range
of the signal (in hertz) to use during preprocessing and feature extraction.
A |
IMF |
The number of IMFs used during an empirical mode decomposition (EMD) transformation. The default value of 1 means do not apply EMD to the signal. |
window_length |
A numerical value representing the length (in number of samples)
of the sliding window used during the windowing transformation. Both
|
window_overlap |
Fraction in the interval [0, 1) specifying the amount of
window overlap during a windowing transformation.
Both |
derived_kinematics |
A logical value specifying whether to add derived
kinematic measurements ( |
funs |
A function or list of functions that each accept a single numeric
vector as input. Each function should return a dataframe of features
(normally a single-row datafame, with column names as feature names).
The input vectors will be the axial measurements from |
models |
A function or list of functions that each accept
|
The walk activity entails participants walking in a straight line for approximately 20 steps with the mobile device in their pocket or in a bag.
A list. The outputs from funs
will
be stored under $extracted_features
and the outputs from models
will be stored under $model_features
. If there is an error
during the transform process, an error dataframe will be stored under
$error
. If gravity_data is passed and window_length and
window_overlap are set, phone rotation information will be stored
under $outlier_windows
.
Thanneer Malai Perumal, Meghasyam Tummalacherla, Phil Snyder
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | walk_features <- get_walk_features(
accelerometer_data,
gyroscope_data)
walk_features <- get_walk_features(
accelerometer_data,
gyroscope_data,
time_filter = c(2,4),
detrend = TRUE,
frequency_filter = c(0.5,25),
window_length = 256,
window_overlap = 0.2,
derived_kinematics = TRUE)
walk_features <- get_walk_features(
accelerometer_data,
gyroscope_data,
funs = list(time_domain_summary))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.