nearest_interp_1d_test, a FORTRAN90 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 made available on this web page are distributed under the MIT license
nearest_interp_1d, a FORTRAN90 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 files which can be used by GNUPLOT to create PNG plots: