This function performs imputation by the mean of the two adjacent values for test dataset of cross-validation.
cvimpute.by.mean(y, impute.index)
observation
test dataset index for cross-validation
imputed values by the mean of the two adjacent values
This function performs imputation by the mean of the two adjacent values for test dataset of cross-validation. See Kim et al. (2012) for detalis.
Kim, D., Kim, K.-O. and Oh, H.-S. (2012) Extending the Scope of Empirical Mode Decomposition using Smoothing. EURASIP Journal on Advances in Signal Processing, 2012:168, doi: 10.1186/1687-6180-2012-168.