thetafun: Spline function.

Description Usage Arguments Value Author(s) Examples

View source: R/RcppExports.R

Description

Function to fit the L2 spline using some Greens function.

Usage

1
thetafun(t, y, gfun, lambda)

Arguments

t

Numeric vector of evaluation times.

y

Numeric vector to be fitted.

gfun

Integer value 1-10 (choice of Greens function).

lambda

Numeric (smoothness parameter).

Value

Numeric vector of fitted values.

Author(s)

Helene Charlotte Rytgaard

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, 9, lambda = 0.0001))

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