closest_point_brute, a MATLAB code which uses brute force to find the nearest of a set of N points in D dimensions to a given test point. This is sometimes called a nearest neighbor calculation.
The information on this web page is distributed under the MIT license.
closest_point_brute is available in a C version and a C++ version and a Fortran77 version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.
cvt, a MATLAB code which computes elements of a Centroidal Voronoi Tessellation (CVT).
nearest_interp_1d, a MATLAB code which interpolates a set of data using a piecewise constant interpolant defined by the nearest neighbor criterion.
nearest_neighbor, a MATLAB code which works in a given m-dimensional space, seeking, for each point in a set S, the nearest point in a set R, by Richard Brown.