thetafun: Spline function.

Description Usage Arguments Examples

Description

Function to fit the L2 spline using some Greens function.

Usage

1
thetafun(t, y, gfun, x = Inf, lambda = 0.001)

Arguments

t

Numeric vector of evaluation times.

y

Numeric vector to be fitted.

gfun

Choice of Greens function.

x

If numeric value then the L2 spline will be evaluated here. Otherwise it will be evaluated in t.

lambda

Smoothness parameter.

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/rSplines documentation built on May 17, 2019, 3:24 p.m.