The function computes the coefficients of the cubic polynomials as spline components of the clamped interpolating cubic spline of class C^2 in its explicit form S=B * gamma.
The function computes the coefficients of the cubic polynomials as spline components of the clamped interpolating cubic spline of class C^2 in its explicit form S=B * gamma.
explicit_spline(B, gamma)
Arguments
B: a 4-element array of (n+1)x(n+4) matrices, whereas element in i-th row and j-th column of l-th matrix contains coefficient by x^{l-1} of cubic polynomial that is in i-th row and j-th column of matrix B from spline's explicit form S=B.gamma.
gamma: a vector of spline coefficients - function values and exterior-node derivatives that takes part in the explicit form S=B.γ.
Returns
a matrix with four columns, whose i-th row contains the coefficients of the splines's i-th component.
Examples
# See functions cics_explicit, cics_unif_explicit and the vignette.