Skip to content

ullmannJan/B-Splines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9352fd2 · Jun 13, 2022

History

27 Commits
Jun 4, 2022
Jun 13, 2022
Apr 30, 2022

Repository files navigation

B-Splines

A fast algorithm in C++ inspired by De Boor's algorithm to calculate Bsplines of arbitrary order and their derivatves.

The file ´bSplines.hpp´ contains three methods

  1. ndxBsplinesHelper(ArrayXd &splines, ArrayXd &knotsInput, int index, uint nDeriv=1)
  2. bSplinesWithDeriv(double x, ArrayXd &knotsInput, int kOrd, int nDeriv=0)
  3. ndxBsplines(double x, ArrayXd &knotsInput, int kOrd, int nDeriv=1)

It is recommended to use ndxBsplines() if you just need the splines or just the derivative. In case you need both together use method bSplinesWithDeriv()

About

Quick B-Spline algorithm in C++17

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages