nearest_interp_1d_test, a C++ code which calls nearest_interp_1d(), which interpolates a set of data using a piecewise constant interpolant defined by the nearest neighbor criterion, creating graphics files for processing by gnuplot().
The information on this web page is distributed under the MIT license.
nearest_interp_1d, a C++ code which interpolates a set of data using a piecewise constant interpolant defined by the nearest neighbor criterion, creating graphics files for processing by gnuplot().
The test program makes data files that can be used by GNUPLOT to create graphics: