Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void PolyFit(TVec *XValues, TVec *YValues, int Degree, TVec *Coeff, TMtx *R, int &DegFreedom, double &L2R, TVec *Weights = null); | Fits a polynomial to data. |
| 2 | void PolyFit(TVec *XValues, TVec *YValues, int Degree, TVec *Coeff, TVec *Weights = null); | Fits a polynomial to data. |
Overload 1: void PolyFit(TVec *XValues, TVec *YValues, int Degree, TVec *Coeff, TMtx *R, int &DegFreedom, double &L2R, TVec *Weights = null);
Fits a polynomial to data.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | XValues | TVec * | Defines x values in p=p(x). |
| 2 | YValues | TVec * | Defines polynomial, evaluated at x i.e p(x). |
| 3 | Degree | int | Defines polynomial degree. |
| 4 | Coeff | TVec * | Returns the coeficients of fitted polynomial. |
| 5 | R | TMtx * | Returns the Cholesky factor of the Vandermonde matrix. |
| 6 | DegFreedom | int & | Returns the degree of freedom. |
| 7 | L2R | double & | Returns the L2 norm of the residuals. |
| 8 | Weights = null | TVec * | If not nil, defines fitting weights. |
Remarks:
The PolyFit procedure uses the least-squares method to find the fitted polynomial coefficients.
Declared in Dew::Math::Units::Polynoms · Dew.Math/Units.Polynoms.h · Cross-compiler
Overload 2: void PolyFit(TVec *XValues, TVec *YValues, int Degree, TVec *Coeff, TVec *Weights = null);
Fits a polynomial to data.
Remarks:
This overload does not return additional statistical parameters like Cholesky matrix or degrees of freedom.
Declared in Dew::Math::Units::Polynoms · Dew.Math/Units.Polynoms.h · Cross-compiler