Package reflectometry :: Package model1d :: Package model :: Module bspline

Module bspline

source code

BSpline functions. Given a set of knots, compute the degree 3 Bspline and any derivatives that are required.
Classes
  BSpline
Deprecated.
  bspline
Deprecated.
  spline
Deprecated.
  slope
Deprecated.
  Slope
Deprecated.
Functions
 
max(a, b) source code
 
min(a, b) source code
 
bspline3(knot, control, t, clamp=True, nderiv=0)
Evaluate the B-spline specified by the given knot sequence and control values at the parametric points t.
source code
Function Details

bspline3(knot, control, t, clamp=True, nderiv=0)

source code 

Evaluate the B-spline specified by the given knot sequence and control values at the parametric points t. The knot sequence should be four elements longer than the control sequence.

If nderiv is greater than 0, returns derivatives as well as the function value. For example, nderiv=3 returns f,f',f'',f''',

If clamp is True, the spline value is clamped to the value of the final control point beyond the ends of the knot sequence. If clamp is False, the spline will go to zero at +/- infinity as in the traditional algorithm.