cics_unif_explicit {ICSsmoothing} | R Documentation |
Construct the explicit form of uniform clamped interpolating cubic spline (UcICS).
Description
cics_unif_explicit
constructs the explicit form of uniform clamped interpolating cubic spline
(via Hermite cubic spline) for nodes uu
, function values yy
and exterior-node derivatives
d
.
Usage
cics_unif_explicit(
uumin,
uumax,
yy,
d,
clrs = c("blue", "red"),
xlab = NULL,
ylab = NULL,
title = NULL
)
Arguments
uumin |
a starting node. |
uumax |
an ending node. |
yy |
a vector of function values pertaining to nodes in |
d |
a vector of two values of derivative, in the first and the last node of |
clrs |
a vector (optional parameter) of colours that are used alternately to plot the graph of spline's components. |
xlab |
a title (optional parameter) for the |
ylab |
a title (optional parameter) for the |
title |
a title (optional parameter) for the plot. |
Value
A list of spline components
spline_coeffs |
matrix, whose |
spline_polynomials |
list of UcICS's components string representations. |
B |
|
gamma |
|
aux_BF |
A basis function of the spline |
aux_tridiag_inverse |
An inverse of the tridiagonal matrix used for spline derivatives construction |
Examples
yy <- c(4, 5, 2, 1.8);
sp <- cics_unif_explicit(0, 6, yy, c(2, 0.9))
sp$spline_polynomials
### <~~>
### Spline components' coefficients
explicit_spline(sp$B, sp$gamma)
sp$spline_coeffs == .Last.value