imp_1NA: Imputing gaps of size 1

View source: R/4_3_1Imputing_1NA.R

imp_1NAR Documentation

Imputing gaps of size 1

Description

Imputes isolated missing values based on the average of nearest neighbours.

Usage

imp_1NA(data, pos1)

Arguments

data

a univariate signal

pos1

the position of the begining of gaps of size 1, as obtained using Indexes_size_missing_multi() function

Value

A new vector of the same size with imputed values.


DTWUMI documentation built on Sept. 9, 2026, 9:08 a.m.

Related to imp_1NA in DTWUMI...