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 computer code and data files described and made available on this web page are 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: