Learn R Programming

MECfda (version 0.2.0)

bsplineSeries2fun: Compute the value of the b-splines summation series at certain points.

Description

Compute the function \(f(x) = \sum_{i=0}^{k}b_i B_{i,p}(x)\)

Usage

bsplineSeries2fun(object, x)

# S4 method for bspline_series,numeric bsplineSeries2fun(object, x)

Value

A numeric atomic vector

Arguments

object

an object of bspline_series class.

x

Value of $x$.

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
)
bsplineSeries2fun(bss,(1:239)/10)

Run the code above in your browser using DataLab