Weighted HANTS smoother
smooth_wHANTS(
y,
t,
w,
nf = 3,
ylu,
periodlen = 365,
nptperyear,
wFUN = wTSM,
iters = 2,
wmin = 0.1,
...
)
Numeric vector, vegetation index time-series
Numeric vector, Date
variable
(optional) Numeric vector, weights of y
. If not specified,
weights of all NA
values will be wmin
, the others will be 1.0.
number of frequencies to be considered above the zero frequency
[low, high]
of time-series y (curve fitting values are constrained
in the range of ylu
.
length of the base period, measured in virtual samples (days, dekads, months, etc.). nptperyear in timesat.
Integer, number of images per year.
weights updating function, can be one of 'wTSM', 'wChen' and 'wBisquare'.
How many times curve fitting is implemented.
Double, minimum weigth (i.e. weight of snow, ice and cloud).
Additional parameters are passed to wFUN
.
ws
: weights of every iteration
zs
: curve fittings of every iteration
library(phenofit)
data("MOD13A1")
dt <- tidy_MOD13(MOD13A1$dt)
d <- dt[site == "AT-Neu", ]
l <- check_input(d$t, d$y, d$w, nptperyear=23)
r_wHANTS <- smooth_wHANTS(l$y, l$t, l$w, ylu = l$ylu, nptperyear = 23, iters = 2)