|
|
| Vector | |
в палитре |
на схеме |
The block is designed for approximation of table-defined functions by the least squares method (LS). The block has three vector inputs and two vector outputs.
Входные порты
- 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, approximation 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 approximated functions.
Выходные порты
- output - the port for calculated after approximation of values of functions in the points specified in the third input port. The size of this output is equal to Narg×Nfun.
- approx_koeff - the port for outputting values of coefficients of approximating polynomials (in ascending order of degrees). The size of this output is equal to (Order+1)⋅Nfun.
Свойства
- Form function:
- Polynomial a[m]⋅xm, m=0...Order.
- a[m]⋅sin(m⋅π⋅x), m=0...Order.
- a[m]⋅(1-x)⋅xm, m=0...Order.
- Approximation order – Order;
- Number of points of the function being approximated – Npnt;
- Number of functions – Nfun.