Learn R Programming

⚠️There's a newer version (2.4.0) of this package.Take me there.

bspline (version 2.3.0)

B-Spline Interpolation and Regression

Description

Build and use B-splines for interpolation and regression. In case of regression, equality constraints as well as monotonicity and/or positivity of B-spline weights can be imposed. Moreover, knot positions (not only spline weights) can be part of optimized parameters too. For this end, 'bspline' is able to calculate Jacobian of basis vectors as function of knot positions. User is provided with functions calculating spline values at arbitrary points. These functions can be differentiated and integrated to obtain B-splines calculating derivatives/integrals at any point. B-splines of this package can simultaneously operate on a series of curves sharing the same set of knots. 'bspline' is written with concern about computing performance that's why the basis and Jacobian calculation is implemented in C++. The rest is implemented in R but without notable impact on computing speed.

Copy Link

Version

Install

install.packages('bspline')

Monthly Downloads

575

Version

2.3.0

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Serguei Sokol

Last Published

February 5th, 2025

Functions in bspline (2.3.0)

parr

Polynomial formulation of B-spline
par2bsp

Convert parameters to B-spline function
smbsp

Smoothing B-spline of order n >= 0
iknots

Estimate internal knot positions equalizing jumps in n-th derivative
bcurve

nD B-curve governed by (x,y,...) control points.
ibsp

Indefinite integral of B-spline
bsppar

Retrieve parameters of B-splines
dbsp

Derivative of B-spline
bsp

Calculate B-spline values from their coefficients qw and knots xk
dmat

Differentiation matrix of B-spline
bsc

Basis matrix and knot Jacobian for B-spline of order 0 (step function) and higher
diffn

Finite differences
bspline

bspline: build and use B-splines for interpolation and regression.
imat

Integration matrix of B-spline
jacw

Knot Jacobian of B-spline with weights
pbsc

Polynomial B-spline Calculation of Basis Matrix
ipk

Intervals of points in knot intervals