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.
Methods
__init__(*args, **kwargs)Initialize self. Attributes
kernelGetter and setter property for the kernel callable. kernel_argsGetter and setter property for the kernel call time arguments. padding_argsGetter and setter property for the kernel call time arguments. windowGetter and setter property for the window. xGetter and setter property for the independent \(x\) variable. yGetter and setter property for the dependent and already known \(y\) variable.