Dew Math for .NET
|
Fits a polynomial to data.
Parameters |
Description |
TVec XValues |
Defines x values in p=p(x). |
TVec YValues |
Defines polynomial, evaluated at x i.e p(x). |
int Degree |
Defines polynomial degree. |
TVec Coeff |
Returns the coeficients of fitted polynomial. |
TMtx R |
Returns the Cholesky factor of the Vandermonde matrix. |
out int DegFreedom |
Returns the degree of freedom. |
out double L2R |
Returns the L2 norm of the residuals. |
TVec Weights |
If not nil, defines fitting weights. |
The PolyFit procedure uses the least-squares method to find the fitted polynomial coefficients.
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
|
What do you think about this topic? Send feedback!
|