interpolate: interpolate

View source: R/Interpolate.R

interpolateR Documentation

interpolate

Description

Univariate interpolation of gappy time series.

Usage

interpolate(z, gap, maxit = 20, progress = FALSE, sigClip = 0.999, delT = 1)

Arguments

z

time series with gaps, denoted by NA.

gap

indexes of missing values, from 1:N, where N = length(z).

maxit

maximum number of iterations for convergence in interpolation.

progress

logical: should progress be written to screen as iterations proceed?

sigClip

probabilistic significance for choice of line components, dividing series into “signal” and “noise” (see algorithm for more). Suggested that this be kept above 0.95 at a minimum.

delT

the time step delta-t in seconds.

Value

returns a list of the interpolated timeseries

Examples

library("tsinterp")
         data("flux")
         z1 <- flux$SagOrig
         z1[which(flux$S == FALSE)] <- NA
         interpolate(z, gap, maxit = 20, progress=FALSE, sigClip=0.999, delT=1)





wesleyburr/tsinterp documentation built on Jan. 28, 2024, 11:16 a.m.