bspline: B-Spline Interpolation and Regression

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.

Version: 2.2.2
Imports: Rcpp (≥ 1.0.7), nlsic (≥ 1.0.2), arrApply
LinkingTo: Rcpp, RcppArmadillo
Suggests: RUnit
Published: 2024-07-02
DOI: 10.32614/CRAN.package.bspline
Author: Serguei Sokol
Maintainer: Serguei Sokol <sokol at>
License: GPL-2
NeedsCompilation: yes
Materials: NEWS
In views: NumericalMathematics
CRAN checks: bspline results


Reference manual: bspline.pdf


Package source: bspline_2.2.2.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): bspline_2.2.2.tgz, r-oldrel (arm64): bspline_2.2.2.tgz, r-release (x86_64): bspline_2.2.2.tgz, r-oldrel (x86_64): bspline_2.2.2.tgz
Old sources: bspline archive


Please use the canonical form to link to this page.