FunctionNatural cubic-spline interpolation of X-Y-MZ-table values
Syntax C/C++#include <MFstd.h>
void MF_natCubSplineInterpol( fMatrix MZ, fVector X, fVector Y, ui ht, ui len, fVector XTab, fVector YTab, fMatrix MZTab, ui httab, ui lentab );
C++ VecObj#include <OptiVec.h>
void matrix<T>::natCubSplineInterpol( const vector<T>& X, const vector<T>& Y, const vector<T>& XTab, const vector<T>& YTab, const matrix<T>& MZTab );
Pascal/Delphiuses VFstd;
procedure MF_natCubSplineInterpol( MZ:fMatrix; X, Y:fVector; ht, len:UIntSize; XTab, YTab:fVector; MZTab:fMatrix; httab, lentab:UIntSize );
CUDA function C/C++#include <cudaMFstd.h>
int cudaMF_natCubSplineInterpol( fMatrix d_MZ, fVector d_X, fVector d_Y, ui ht, ui len, fVector d_XTab, fVector d_YTab, fMatrix d_MZTab, ui httab, ui lentab );
void MFcu_natCubSplineInterpol( fMatrix h_MZ, fVector h_X, fVector h_Y, ui ht, ui len, fVector h_XTab, fVector h_YTab, fMatrix h_MZTab, ui httab, ui lentab );
CUDA function Pascal/Delphiuses MFstd;
function cudaMF_natCubSplineInterpol( d_MZ:fMatrix; d_X, d_Y:fVector; ht, len:UIntSize; d_XTab, d_YTab:fVector; d_MZTab:fMatrix; httab, lentab:UIntSize ): IntBool;
procedure MFcu_natCubSplineInterpol( h_MZ:fMatrix; h_X, h_Y:fVector; ht, len:UIntSize; h_XTab, h_YTab:fVector; h_MZTab:fMatrix; httab, lentab:UIntSize );
DescriptionFor each of the htlen x / y coordinates defined by X and Y, the corresponding element of MZ is interpolated from the XTab-YTab-MZTab values. XTab and YTab must be ordered (either ascending or descending). All values of XTab as well as of YTab 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.
Error handlingnone (you have to take care yourself that the XTab and YTab values are distinct and that the MZTab values are not near the limit of overflowing).
Return valuenone
See alsoMF_ratinterpol,   MF_polyinterpol,   VF_natCubSplineInterpol

MatrixLib Table of Contents  OptiVec home