BasisFunction#

class splinebox.basis_functions.BasisFunction(multigenerator, support)#

Base class for all basis functions.

Parameters#

multigeneratorboolean

This indicates if the basis function generates multiple outputs. In practice, this is used to indicate if a basis function is meant for a Hermite spline or not. Basis functions for Hermite splines return two values instead of one.

supportfloat

The support of the function, i.e. the size of the area being mapped to non-zero values.

Methods

eval(t[, derivative])

Evaluate the function at position(s) t.

filter_periodic(s)

The filter used to turn knots into control points for a closed spline.

filter_symmetric(s)

The filter used to turn knots into control points for an open spline.

refinement_mask()

This function is needed for local refinement (see [Badoual2016]).