|
|
| Vectorized | |
in the palette |
on the schematic |
The block is designed for interpolation of table-defined functions. The block has three vector inputs and one vector output. The methods of interpolation by Lagrange polynomials and cubic splines are implemented. The order of interpolation (Order) and the index of the beginning of interpolation (Ind) are important only for interpolation by Lagrange polynomials. The values of Order and Ind define the interpolated and extrapolated ranges. Within the interval [x(Ind), x(Ind+Order)] the function is interpolated, outside this interval it is extrapolated. When interpolating by splines, the condition of equality to 0 of the second derivatives is set on the interval boundaries.
Inputs
- args_table - the port for the array of values of arguments of table-defined functions of dimension Npnt.
- func_table - the port for an array of values of table-defined functions of dimension Npnt×Nfun (thus, interpolation of several functions defined in the same points by an independent argument can be performed simultaneously).
- args - the port for array of argument points of dimension Narg, in which it is necessary to calculate the value of interpolated functions.
Outputs
- output - the port for calculated after interpolation values of functions in the points specified in the third input port. The size of this output is equal to Narg×Nfun.
Properties:
- Interpolation method - Lagrange polynomial; Cubic spline; Linear.
- Order of interpolation - Order (for interpolation by Lagrange polynomials).
- Number of function points - natural number Npnt.
- Interpolation start index - natural number Ind (for interpolation by Lagrange polynomials).
- Number of functions - a natural number Nfun.