new_bmop: New bmop object

Description Usage Arguments Details Value

View source: R/1-base-functions.R

Description

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.

Usage

1
new_bmop(knots, order, ctrpoints = NULL, nk = FALSE)

Arguments

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

Details

The function create an object of class bmop, that is, a list with components

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.

Value

An object of class bmop, a list with elements order, knots, ctrpoints,


gherardovarando/Rbmop documentation built on May 17, 2019, 4:17 a.m.