moderndid.BSpline.derivative#

method

BSpline.derivative(derivs=1, complete_basis=True)[source]#

Compute derivatives of B-spline basis functions.

Parameters:
derivsint, default=1

The order of the derivative to compute. Must be a positive integer.

complete_basisbool, default=True

If True, return the complete derivative matrix. If False, the first column is dropped.

Returns:
numpy.ndarray

The matrix of B-spline derivatives.