colour.PchipInterpolator#

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

Bases: PchipInterpolator

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

Attributes

Methods

Notes

  • This class is a wrapper around scipy.interpolate.PchipInterpolator class.

Parameters:
  • x (ArrayLike) –

  • y (ArrayLike) –

  • args (Any) –

  • kwargs (Any) –

__init__(x: ArrayLike, y: ArrayLike, *args: Any, **kwargs: Any) None[source]#
Parameters:
  • x (ArrayLike) –

  • y (ArrayLike) –

  • args (Any) –

  • kwargs (Any) –

Return type:

None

property y: NDArrayFloat#

Getter and setter property for the dependent and already known \(y\) variable.

Parameters:

value – Value to set the dependent and already known \(y\) variable with.

Returns:

Dependent and already known \(y\) variable.

Return type:

numpy.ndarray