pwl_approx_1d_test, a C++ code which calls pwl_approx_1d(), which defines and evaluates a piecewise linear function, using NC "control points", which approximates a set of ND data points (x(i),y(i)).
The computer code and data files described and made available on this web page are distributed under the MIT license
pwl_approx_1d, a C++ code which approximates a set of data using a piecewise linear function.