Processor for irregular time series data with missing values. Supports uniform resampling and two imputation strategies: forward-fill and zero-fill.
Super classes
RHealth::Processor -> RHealth::FeatureProcessor -> TimeseriesProcessor
Public fields
sampling_rateA lubridate duration indicating the sampling step size.
impute_strategyA character string: 'forward_fill' or 'zero'.
.sizeNumber of features (set on first call to process()).
Methods
Method new()
Initialize the processor with a sampling rate and imputation strategy.
Usage
TimeseriesProcessor$new(
sampling_rate = lubridate::dhours(1),
impute_strategy = "forward_fill"
)Method process()
Process irregular time series into uniformly sampled tensor. Step 1: uniformly sample time points and place values at correct positions. Step 2: impute missing entries using selected strategy.