colour.NearestNeighbourInterpolator#

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

Bases: _DispatchingInterpolator

Perform nearest-neighbour interpolation on discrete data.

Resolve the backend from the input data and delegate to the matching backend-specialised implementation, selecting the closest known data point for each query position.

Parameters:
property dtype: Any#

Getter for the self.dtype property.