colour.NearestNeighbourInterpolator

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

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.
__init__(*args, **kwargs)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(*args, **kwargs) Initialize self.

Attributes

kernel Getter and setter property for the kernel callable.
kernel_args Getter and setter property for the kernel call time arguments.
padding_args Getter and setter property for the kernel call time arguments.
window Getter and setter property for the window.
x Getter and setter property for the independent \(x\) variable.
y Getter and setter property for the dependent and already known \(y\) variable.