Bfct: power basis functions of a spline of given degree

Description Usage Arguments Value Examples

Description

Bfct returns the power basis functions of a spline of given degree.

Usage

1
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

1
2
3
4
5
6
7
library(ODS)

x <- matrix(c(1,2,3,4,5),ncol=1)
degree <- 2
knots <- c(1,3,4)

Bfct(x, degree, knots)

Yinghao-Pan/ODS documentation built on May 10, 2019, 12:07 a.m.