padding_function#

splinebox.spline_curves.padding_function(knots, pad_length)#

This is the default padding function of splinebox. It applies constant padding to the ends of the knots.

Parameters#

knotsnumpy array

The knots to be padded.

pad_lengthint

The amount of padding at each end.

Returns#

padded_knotsnumpy array

Array of padded knots.