bsplineSeries2fun {MECfda} | R Documentation |
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 signature 'bspline_series,numeric'
bsplineSeries2fun(object, x)
Arguments
object |
an object of |
x |
Value of $x$. |
Value
A numeric atomic vector
Author(s)
Heyang Ji
Examples
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)
[Package MECfda version 0.2.0 Index]