View source: R/smooth_wWHIT_lambda.R
v_curve | R Documentation |
lambda
.V-curve is used to optimize Whittaker parameter lambda
.
This function is not for users!!!
Update 20180605 add weights updating to whittaker lambda selecting
v_curve(INPUT, lg_lambdas = seq(0, 5, by = 0.005), plot = FALSE, ...)
INPUT |
A list object with the elements of |
lg_lambdas |
numeric vector, log10(lambda) candidates. The optimal |
plot |
logical. If |
... |
ignored. |
lambda_vcurve
data("CA_NS6"); d = CA_NS6
nptperyear = 23
INPUT <- check_input(d$t, d$y, d$w, nptperyear = nptperyear,
maxgap = nptperyear/4, alpha = 0.02, wmin = 0.2)
r <- v_curve(INPUT, lg_lambdas = seq(0, 3, 0.1), plot = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.