nearest_interp_1d_test


nearest_interp_1d_test, an Octave code which calls nearest_interp_1d(), which interpolates a set of data using a piecewise constant interpolant defined by the nearest neighbor criterion.

Licensing:

The computer code and data files described and made available on this web page are distributed under the MIT license

Related Data and Programs:

nearest_interp_1d, an Octave code which interpolates a set of data using a piecewise constant interpolant defined by the nearest neighbor criterion.

Source Code:

nearest_interp_1d_test01() plots a piecewise linear interpolant to the original data, and the nearest neighbor interpolant.


Last modified on 14 October 2022.