chaosmagpy.model_utils.augment_breaks

chaosmagpy.model_utils.augment_breaks(breaks, order)[source]

Augment a vector of break points and return the knot vector for a B-spline representation of order k.

Parameters:
breaks: ndarray, shape (n,)

1-D array, containing n break points (without endpoint repeats).

order: int, positive

Order k of B-spline (4 = cubic).

Returns:
knots: ndarray, shape (n+2k-2,)

1-D array with k-times repeated copies of the breaks-vector endpoints breaks[0] and breaks[-1].