frequency_domain_energy: Returns energy for each 0.5Hz band in the frequency spectrum.

Description Usage Arguments Value Author(s) Examples

View source: R/feature_extraction_functions.R

Description

A convenience feature extraction function that converts a given time series in to frequency spectrum and computes energy in each 0.5Hz band from 0 to 25 Hz.

Usage

1
frequency_domain_energy(values, sampling_rate = NA)

Arguments

values

A numeric vector.

sampling_rate

Sampling_rate of values. If NA it uses default sampling rate of 100Hz.

Value

A features data frame of dimension 1 x 48, each representing energy within a 0.5Hz band. See the feature definition vignette: vignette("feature_definitions", package="mhealthtools")

Author(s)

Thanneer Malai Perumal, Phil Snyder

Examples

1
2
3
frequency_energy_features = frequency_domain_energy(
  accelerometer_data$x,
  sampling_rate = 100.122)

Sage-Bionetworks/mhealthtools documentation built on Sept. 20, 2020, 1:42 p.m.