colour.PchipInterpolator#

class colour.PchipInterpolator(x: Any, y: Any, *args: Any, **kwargs: Any)[source]#

Bases: _DispatchingInterpolator

Interpolate a 1-D function using Piecewise Cubic Hermite Interpolating Polynomial (PCHIP) interpolation.

NumPy arrays are evaluated with SciPy, other array namespaces use an equivalent native implementation that preserves automatic differentiation graphs.

On the NumPy backend the wrapped SciPy PchipInterpolator methods derivative, integrate, roots and solve are exposed; they are unavailable for other backends.

Parameters:
property dtype: Any#

Getter for the self.dtype property.