L2spline: L2 spline function.

Description Usage Arguments Examples

View source: R/L2spline.R

Description

Function to fit the L2 spline using some Greens function.

Usage

1
L2spline(t, y, gfun, y0 = 0, lambda = 0.001, x = Inf)

Arguments

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.

Examples

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))

helenecharlotte/L1splines documentation built on May 17, 2019, 3:24 p.m.