Curve interpolation

Back to PastelMath

A curve is a continuous function from a subset of ''RR'' to a metric space ''M''. If the image of the function intersects with some finite set of points ''X sub M'', then the curve is said to interpolate ''X''.

Theory

In general, the problem of curve interpolation fixes a function class ''C'' for the curves and then asks for an algorithm that for a given set ''X'' returns an interpolating function from C. In case ''X'' does not uniquely determine a function, additional conditions might be imposed for the solution.

Files

An aggregate file for curve interpolation

interpolation.h

Catmull-Rom spline

crspline.h

crspline.hpp

Cubic and quintic Hermite polynomials

hermite.h

hermite.hpp

Kochanek-Bartels spline

kbspline.h

kbspline.hpp

PiecewiseLinear class

Allows to work with piecewise linear functions

piecewiselinear.h

piecewiselinear.hpp

Smoothstep functions

Cubic, quartic, and quintic smoothstep functions

smoothstep.h

smoothstep.hpp

Testing for PiecewiseLinear

test_piecewiselinear.cpp

Testing for smooth-step functions

test_smoothstep.cpp