powered by
Bfct returns the power basis functions of a spline of given degree.
Bfct
Bfct(x, degree, knots, der)
n by 1 matrix of the independent variable
the order of spline
the knots location
the der-order derivative. The default is 0
n by (1+degree+nknots) matrix corresponding to the truncated power spline basis with knots and specified degree.
# NOT RUN { library(ODS) x <- matrix(c(1,2,3,4,5),ncol=1) degree <- 2 knots <- c(1,3,4) Bfct(x, degree, knots) # }
Run the code above in your browser using DataLab