| VF_natCubSplineInterpol | VD_natCubSplineInterpol | VE_natCubSplineInterpol |
|
| Function | Natural 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/Delphi | uses VFstd;
procedure VF_natCubSplineInterpol( Y, X:fVector; sizex:UInt; XTab, YTab:fVector; sizetab:UInt ); |
|
| Description | For 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 handling | none (you have to take care yourself that the XTab values are distinct and that the YTab values are not near the limit of overflowing). |
|
|
|