Learn R Programming

cubicBsplines (version 1.0.0)

IBsplines: Computation of the integral of a cubic B-spline basis over (t0,x) for a given vector of knots

Description

Computation of the integral of a cubic B-spline basis over (t0,x) for a given vector of knots

Usage

IBsplines(t0, x, knots)

Arguments

t0

scalar giving lower value of the integration interval.

x

vector giving the upper values of the integration interval.

knots

vector of knots spanning the desired B-spline basis.

Value

A matrix of dimension length(x) by (length(knots)+2).

Each integrated cubic B-spline is within a given column.

Examples

Run this code
# NOT RUN {
IBsplines(t0=0,x=runif(20),knots=seq(0,1,length=11))
# }

Run the code above in your browser using DataLab