Bfct {ODS} | R Documentation |
power basis functions of a spline of given degree
Description
Bfct
returns the power basis functions of a spline of given degree.
Usage
Bfct(x, degree, knots, der)
Arguments
x |
n by 1 matrix of the independent variable |
degree |
the order of spline |
knots |
the knots location |
der |
the der-order derivative. The default is 0 |
Value
n by (1+degree+nknots) matrix corresponding to the truncated power spline basis with knots and specified degree.
Examples
library(ODS)
x <- matrix(c(1,2,3,4,5),ncol=1)
degree <- 2
knots <- c(1,3,4)
Bfct(x, degree, knots)
[Package ODS version 0.2.0 Index]