In the next section, we will look at how to solve B-splines given some controlled data.
Defining a B-spline for a given set of control points
Getting ready
We need to follow some instructions and install the prerequisites.
How to do it…
- Univariate the spline in the B-spline basis
- Execute the following: S(x)=∑j=0n−1cjBj,k;t(x)S(x)=∑j=0n−1cjBj,k;t(x)
- Where it's Bj,k;tBj,k;t are B-spline basis functions of degree k and knots t
- We can use the following parameters:
Parameters |
t: ndarray, shape (n+k+1,) knots. c: ndarray, shape... |