Imputing small gaps using weighted moving average.
imp_small_gaps_WMA(signal, posMA, pMA, store_w, lag)
position of the begining of small gaps
position of all corresponding values of small gaps
list storing index and size of gaps
lag of the weighted moving average function
multivariate data
signal
returns a vector of imputed values