bsplineSeries2fun | R Documentation |
Compute the function f(x) = \sum_{i=0}^{k}b_i B_{i,p}(x)
bsplineSeries2fun(object, x)
## S4 method for signature 'bspline_series,numeric'
bsplineSeries2fun(object, x)
object |
an object of |
x |
Value of $x$. |
A numeric atomic vector
Heyang Ji
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.