R/feature_extraction_functions.R
frequency_domain_summary.Rd
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)
values | A numeric vector from a time series measurement. |
---|---|
sampling_rate | Sampling_rate of |
npeaks | Number of peaks to be computed in emprical wavelet transformation (EWT). If NA it uses the default value of 3. |
A features data frame of dimension 1 x 19. See the
feature definition vignette:
vignette("feature_definitions", package="mhealthtools")
frequency_features = frequency_domain_summary( accelerometer_data$x, sampling_rate = 100.122, npeaks = 3)