A convenience feature extraction function that characterises the frequency spectrum of a given time series in to statistical features in the frequency domain.

frequency_domain_summary(values, sampling_rate = NA, npeaks = NA)

Arguments

values

A numeric vector from a time series measurement.

sampling_rate

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

npeaks

Number of peaks to be computed in emprical wavelet transformation (EWT). If NA it uses the default value of 3.

Value

A features data frame of dimension 1 x 19. See the feature definition vignette: vignette("feature_definitions", package="mhealthtools")

Examples

frequency_features = frequency_domain_summary( accelerometer_data$x, sampling_rate = 100.122, npeaks = 3)