Learn R Programming

MECfda (version 0.2.0)

bspline_series-class: b-splines summation series.

Description

A s4 class that represents the summation \(\sum_{i=0}^{k}b_i B_{i,p}(x)\) by a bspline_basis object and coefficients \(b_i\) (\(i = 0,\dots,k\)).

Arguments

Slots

coef

coefficients of the b-splines, \(b_i\) (\(i = 0,\dots,k\)).

bspline_basis

a bspline_basis object, represents the b-splines basis used, \(\{B_{i,p}(x)\}_{i=-p}^{k}\).

Author

Heyang Ji

Examples

Run this code
bsb = bspline_basis(
            Boundary.knots = c(0,24),
            intercept      = TRUE,
            df             = NULL,
            degree         = 3
)
bss = bspline_series(
          coef = c(2,1,1.5,0.5),
          bspline_basis = bsb
)

Run the code above in your browser using DataLab