Description Usage Arguments Examples
Function to fit the L2 spline using some Greens function.
1 |
t |
Numeric vector of observation times. |
y |
Numeric vector to be fitted. |
gfun |
Choice of Greens function (1-10). |
y0 |
Numeric value to move y-values up or down. Per default y0 = 0. |
lambda |
Smoothness parameter. |
x |
Numeric vector. If specified, spline is computed in this set of points. |
1 2 3 | t = generate.t(m = 25); y = generate.y()(t) + generate.noise(t, type = 2)
plot(t, y, col = "blue")
lines(t, thetafun(t, y, G9, lambda = 0.0001))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.