nearest_interp_1d_test


nearest_interp_1d_test, a MATLAB 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 GNU LGPL license.

Related Data and Programs:

nearest_interp_1d, a MATLAB 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 22 February 2019.