Learn R Programming

FSMUMI (version 1.0)

imp_small_gaps_WMA: Completing small gaps that their sizes belong to (1,large_gap_threshold).

Description

Imputing small gaps using weighted moving average.

Usage

imp_small_gaps_WMA(signal, posMA, pMA, store_w, lag)

Arguments

posMA

position of the begining of small gaps

pMA

position of all corresponding values of small gaps

store_w

list storing index and size of gaps

lag

lag of the weighted moving average function

Data

multivariate data

univariate

signal

Value

returns a vector of imputed values