Inheritance diagram for LagrangeInterpPolynomial:

Public Member Functions | |
| LagrangeInterpPolynomial () | |
| default constructor | |
| LagrangeInterpPolynomial (const RealVector &interpolation_pts) | |
| standard constructor | |
| ~LagrangeInterpPolynomial () | |
| destructor | |
| const Real & | get_value (const Real &x, unsigned short i) |
| parameter x | |
| const Real & | get_gradient (const Real &x, unsigned short i) |
| given parameter x | |
| void | interpolation_points (const RealVector &interpolation_pts) |
| set interpolationPts | |
Private Member Functions | |
| void | precompute_data () |
| precompute data that is reused repeatedly within Lagrange interpolation | |
Private Attributes | |
| RealVector | interpolationPts |
| evaluated at the j_th interpolation point produces Kronecker delta_ij | |
| size_t | numInterpPts |
| number of 1-D interpolation points | |
| RealVector | lagDenominators |
| precompute_data() | |
The LagrangeInterpPolynomial class evaluates a univariate Lagrange interpolation polynomial. The order of the polynomial is dictated by the number of interpolation points (order = N_p - 1). It enables multidimensional interpolants within InterpPolyApproximation.
| const Real & get_value | ( | const Real & | x, | |
| unsigned short | i | |||
| ) | [virtual] |
parameter x
Compute value of Lagrange polynomial for interpolation point i.
Reimplemented from BasisPolynomial.
| const Real & get_gradient | ( | const Real & | x, | |
| unsigned short | i | |||
| ) | [virtual] |
given parameter x
Compute derivative with respect to x of Lagrange polynomial for interpolation point i.
Reimplemented from BasisPolynomial.
| void precompute_data | ( | ) | [private] |
precompute data that is reused repeatedly within Lagrange interpolation
Pre-compute denominator products that are only a function of the interpolationPts.
1.5.1