LS approximation

| 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.

Входные порты

Выходные порты

  • 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:
    1. Polynomial a[m]⋅xm, m=0...Order.
    2. a[m]⋅sin(mπx), m=0...Order.
    3. a[m]⋅(1-x)⋅xm, m=0...Order.
  • Approximation order – Order;
  • Number of points of the function being approximated – Npnt;
  • Number of functions – Nfun.

Параметры

none