colour.NearestNeighbourInterpolator#

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

Bases: colour.algebra.interpolation.KernelInterpolator

A nearest-neighbour interpolator.

Parameters
  • dtype – Data type used for internal conversions.

  • padding_kwargs – Arguments to use when padding \(y\) variable values with the np.pad() definition.

  • window – Width of the window in samples on each side.

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

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

  • args (Any) –

  • kwargs (Any) –

Methods

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

  • kwargs (Any) –