BiVarInt | R Documentation |
BiVarInt
BiVarInt(
z1,
z2,
gap1,
gap2,
maxit,
progress = FALSE,
sigClip = 0.999,
delT = 1
)
z1 |
first time series (possibly) with gaps, denoted by |
z2 |
second time series (possibly) with gaps, denoted by |
gap1 |
indexes of missing values from |
gap2 |
indexes of missing values from |
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 |
delT |
the time step delta-t in seconds. |
This function implements the algorithm developed and explained in Chapter 4 of
Additional details... A list of five elements, including an interpolated series: zF the final interpolated series. p the number of iterations. diffC the difference between the final series and the previous iteration (metric for convergence). zA a list of interim series, showing each stage of the convergence. converge logical indicating whether convergence occurred.
zF the final interpolated series.
library("tsinterp")
data("flux")
z1 <- flux$SagOrig
z1[which(flux$S == FALSE)] <- NA
z2 <- flux$PentOrig
# Unfortunately, not fast enough to run for CRAN checks
sagInt <- BiVarInt(z1 = z1, z2 = z2, gap1 = which(flux$S == FALSE),
gap2 = NULL, maxit = 3, delT = 86400)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.