A convenience feature extraction function which characterises a given time series in to statistical features in the time domain.

time_domain_summary(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 20. See the feature definition vignette: vignette("feature_definitions", package="mhealthtools")

Examples

time_features = time_domain_summary( accelerometer_data$x, sampling_rate = 100.122)