VF_natCubSplineInterpolVD_natCubSplineInterpolVE_natCubSplineInterpol
FunctionNatural cubic-spline interpolation of X-Y-table values
Syntax C/C++#include <VFstd.h>
void VF_natCubSplineInterpol( fVector Y, fVector X, ui sizex, fVector XTab, fVector YTab, ui sizetab );
C++ VecObj#include <OptiVec.h>
void vector<T>::natCubSplineInterpol( const vector<T>& X, const vector<T>& XTab, const vector<T>& YTab );
Pascal/Delphiuses VFstd;
procedure VF_natCubSplineInterpol( Y, X:fVector; sizex:UInt; XTab, YTab:fVector; sizetab:UInt );
DescriptionFor each of the sizex elements of X, the corresponding element of Y is interpolated from the XTab-YTab value pairs. XTab must be ordered (either ascending or descending). All values of XTab must be distinct; otherwise a division by zero may occur and lead to a program abort. sizetab must be greater than or equal to 3.
This function calculates the "natural" cubic-spline interpolation. For general cubic-spline interpolation with specified second derivatives of the YTab values with respect to XTab, call VF_splineinterpol.
Error handlingnone (you have to take care yourself that the XTab values are distinct and that the YTab values are not near the limit of overflowing).
Return valuenone
See alsoVF_splineinterpol,   VF_ratinterpol,   VF_polyinterpol

VectorLib Table of Contents  OptiVec home