Description Usage Arguments Details Value
View source: R/1-base-functions.R
Constructor of bmop object.
This fanction provide full control on the creation of a bmop object. It +
is easier and safer to use the fitting functions like bmop_fit
.
1 |
knots |
list of numeric vector, knots of the B-spline basis |
order |
vector order of the B-spline for each variable, values will be recycled eventually |
ctrpoints |
array of control points |
nk |
logical, parameter used internally see details on how to use it |
The function create an object of class bmop
, that is, a list
with components
order
vector of orders
knots
list, every element of the list is the vector of knots in
one dimension, knots are ordered but can be repeted.
ctropoints
An array of control points
If nk==FALSE
(default method) the knots provided are sorted and the
unique
function is applied. Then the appropriate knots are computed,
repeating the first and last knots many times as the order in the considered
dimension, with this choice the bmop object represent a B-spline function
regular up to the order-1
derivate in every dimension.
If nk==TRUE
the bmop object will be created without any check on the
knots, use carefully this option as it could result in a wrong defined bmop
object.
An object of class bmop, a list with elements order
,
knots
, ctrpoints
,
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.