filterVI | R Documentation |
Estimate missing values using smooth gap-filled time series data with a two-stage Savitzky-Golay smoothing filter.
filterVI(x, ...)
fillVI(x, method = "natural")
x |
numeric or SpatRaster representing time series signal to be filtered |
method |
type of spline to be used. Possible values are "fmm", "natural", "periodic", "monoH.FC" and "hyman" |
... |
additional arguments:
|
Performs smoothing of time series data using a two pass Savitzky-Golay smoothing filter. Second pass is an iterative method to minimize the difference between actual and fitted values that are significantly lower than the actual values. Missing values designated as NA
are automatically interpolated with spline
. For more details on the arguments see splinefun
and sgolayfilt
.
Filtered signal of length(x)
# apply on single pixel
#vi <- ....
#s <- filterVI(vi)
# for time series raster
#fevi <- app(evi, filterVI)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.