Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void PolyEval(TVec *Val, TVec *Coeff, TMtx *R, int DegFreedom, double L2R, TVec *EvalResult, TVec *Delta); | Evaluate a polynomial. |
| 2 | void PolyEval(TVec *Val, TVec *Coeff, TVec *EvalResult); | Evaluates a polynomial with coefficients Coeff at value Val and returns the results in EvalResult. |
| 3 | double PolyEval(double Val, TVec *Coeff); | Evaluates a polynomial with coefficients Coeff at real value Val and returns real result. |
| 4 | TCplx PolyEval(TCplx Val, TVec *Coeff); | Evaluates a polynomial with coefficients Coeff at complex value Val and returns complex results. |
Overload 1: void PolyEval(TVec *Val, TVec *Coeff, TMtx *R, int DegFreedom, double L2R, TVec *EvalResult, TVec *Delta);
Evaluate a polynomial.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Val | TVec * | Stores values doe which the polynomial will be evaluated (x values). |
| 2 | Coeff | TVec * | Stores polynomial coefficients for which the polynomial will be evaaluted. |
| 3 | R | TMtx * | Returns the Cholesky factor of the Vandermonde matrix. |
| 4 | DegFreedom | int | Returns the residuals degree of freedom. |
| 5 | L2R | double | Returns the L2 norm of the residuals. |
| 6 | EvalResult | TVec * | Returns the results P(x), evaluated at Val. |
| 7 | Delta | TVec * | Returns the error estimates for Results. |
Evaluate a polynomial with coefficients Coeff at value Val. The order of polynomial (N) is determined as: N := Coeff.Length - 1. The algorithm employed uses Horners rule. The following formula is used to evaluate the polynomial:
P(x) = coeff[0]*x^n + coeff[1]*x^(n-1) + .. + coeff[n]
To estimate the error of polynomial interpolation after a call to Polynoms::PolyFit additional parameters have to be passed to the routine.
Overload 2: void PolyEval(TVec *Val, TVec *Coeff, TVec *EvalResult);
Evaluates a polynomial with coefficients Coeff at value Val and returns the results in EvalResult.
Evaluates a polynomial with coefficients Coeff at value Val and returns the results in EvalResult.
Overload 3: double PolyEval(double Val, TVec *Coeff);
Evaluates a polynomial with coefficients Coeff at real value Val and returns real result.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Val | double | |
| 2 | Coeff | TVec * |
Evaluates a polynomial with coefficients Coeff at real value Val and returns real result.
Overload 4: TCplx PolyEval(TCplx Val, TVec *Coeff);
Evaluates a polynomial with coefficients Coeff at complex value Val and returns complex results.
Evaluates a polynomial with coefficients Coeff at complex value Val and returns complex results.