Skip to content

NearestNeighbor

Christian d'Heureuse edited this page Sep 25, 2026 · 1 revision

commons-math-interpolation / NearestNeighbor

NearestNeighbor

Nearest neighbor interpolation.

The interpolating function is a step function that returns the y value of the interpolation point whose x value is nearest to the argument.

Functions

Function Description
createNearestNeighborInterpolator Returns a nearest neighbor interpolating function for a dataset.

Clone this wiki locally