test_interp_fun, an Octave code which provides the values of certain functions that are useful for testing an interpolation algorithm using a varying number of points.
The related packages TEST_INTERP and TEST_APPROX provide discrete data sets of (x,y) pairs. However, when the convergence rate of an interpolation process is of interest, it is important to be able to sample an underlying but "unknown" function at an increasing number of points. This library provides a few functions which are known to cause problems for certain kinds of interpolation schemes.
The problems available include:
The computer code and data files described and made available on this web page are distributed under the MIT license
test_interp_fun is available in a MATLAB version and an Octave version.
chebyshev, an Octave code which computes the Chebyshev interpolant/approximant to a given function over an interval.
divdif, an Octave code which includes many routines to construct and evaluate divided difference interpolants.
interp, an Octave code which can be used for parameterizing and interpolating data;
lagrange_interp_1d, an Octave code which defines and evaluates the Lagrange polynomial p(x) which interpolates a set of data, so that p(x(i)) = y(i).
rbf_interp, an Octave code which defines and evaluates radial basis function (RBF) interpolants to multidimensional data.
shepard_interp_1d, an Octave code which defines and evaluates Shepard interpolants to 1d data, which are based on inverse distance weighting.
spline, an Octave code which includes many routines to construct and evaluate spline interpolants and approximants.
test_approx, an Octave code which defines test problems for approximation, provided as a set of (x,y) data.
test_interp, an Octave code which defines a number of test problems for interpolation, provided as a set of (x,y) data.
vandermonde_interp_1d, an Octave code which finds a polynomial interpolant to a function of 1d data by setting up and solving a linear system for the polynomial coefficients, involving the Vandermonde matrix.