Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void Interpolate(TVec *X, TVec *Y, TVec *intX, TVec *IntY, TInterpolationType IntType = TInterpolationType::IntCubic, bool IntXSorted = true); | Perform linear or cubic interpolation. |
| 2 | void Interpolate(TVec *Y, TVec *intX, TVec *IntY, TInterpolationType IntType = TInterpolationType::IntCubic, bool IntXSorted = true); | Performs interpolation assuming X=[0,1,..]. |
Overload 1: void Interpolate(TVec *X, TVec *Y, TVec *intX, TVec *IntY, TInterpolationType IntType = TInterpolationType::IntCubic, bool IntXSorted = true);
Perform linear or cubic interpolation.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TVec * | |
| 2 | Y | TVec * | |
| 3 | intX | TVec * | |
| 4 | IntY | TVec * | |
| 5 | IntType = TInterpolationType::IntCubic | TInterpolationType | |
| 6 | IntXSorted = true | bool |
Remarks:
The routine interpolates IntY at IntX to the underlying function values, stored in Y. X.Length and Y.length properties must match or an exception will be raised. The IntType parameter defines the type of interpolation (linear, cubic). The intXSorted parameter defines whether intX values are sorted. If intX values are sorted the interpolation is much faster.
Vector X stores the positions, where the function is evaluated. X values must be monotonic. The Length and Complex properties of the IntY vector are adjusted automatically.
Declared in Dew::Math::Units::Polynoms · Dew.Math/Units.Polynoms.h · Cross-compiler
Overload 2: void Interpolate(TVec *Y, TVec *intX, TVec *IntY, TInterpolationType IntType = TInterpolationType::IntCubic, bool IntXSorted = true);
Performs interpolation assuming X=[0,1,..].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Y | TVec * | |
| 2 | intX | TVec * | |
| 3 | IntY | TVec * | |
| 4 | IntType = TInterpolationType::IntCubic | TInterpolationType | |
| 5 | IntXSorted = true | bool |
Remarks:
Performs interpolation assuming X=[0,1,..] and assumes that Y is evaluated at [0,1,2,...] -> X values are [0,1,2,...].
Declared in Dew::Math::Units::Polynoms · Dew.Math/Units.Polynoms.h · Cross-compiler