functionfitting
Computes the coefficients of a polynomial that fits a set of data points in a least-squares sense
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:] | u | Abscissa data values | |
| Real[size(u, 1)] | y | Ordinate data values | |
| Integer | n | Order of desired polynomial that fits the data points (u,y) |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[n + 1] | p | Polynomial coefficients of polynomial that fits the date points |