bspline  BSpline interpolation library¶
bspline 
Evaluate the Bspline with control points y at positions xt in [0,1]. 
pbs 
Evaluate the parametric Bspline px(t),py(t). 
BSpline calculator.
Given a set of knots, compute the cubic Bspline interpolation.

bumps.bspline.
bspline
(y, xt, clamp=True)[source]¶ Evaluate the Bspline with control points y at positions xt in [0,1].
The spline goes through the control points at the ends. If clamp is True, the derivative of the spline at both ends is zero. If clamp is False, the derivative at the ends is equal to the slope connecting the final pair of control points.
Bspline knots are chosen to be equally spaced within [0,1].

bumps.bspline.
pbs
(x, y, t, clamp=True, parametric=True)[source]¶ Evaluate the parametric Bspline px(t),py(t).
x and y are the control points, and t are the points in [0,1] at which they are evaluated. The x values are sorted so that the spline describes a function.
The spline goes through the control points at the ends. If clamp is True, the derivative of the spline at both ends is zero. If clamp is False, the derivative at the ends is equal to the slope connecting the final pair of control points.
If parametric is False, then parametric points t’ are chosen such that x(t’) = t.
The Bspline knots are chosen to be equally spaced within [0,1].