Learn R Programming

ODS (version 0.2.0)

Bfct: 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

Run this code
# 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