colour.NearestNeighbourInterpolator

class colour.NearestNeighbourInterpolator(*args, **kwargs)[source]

Bases: colour.algebra.interpolation.KernelInterpolator

A nearest-neighbour interpolator.

Other Parameters
  • x (array_like) – Independent \(x\) variable values corresponding with \(y\) variable.

  • y (array_like) – Dependent and already known \(y\) variable values to interpolate.

  • window (int, optional) – Width of the window in samples on each side.

  • padding_args (dict, optional) – Arguments to use when padding \(y\) variable values with the np.pad() definition.

  • dtype (type) – Data type used for internal conversions.