LagrangeInterpPolynomial Class Reference

Derived basis polynomial class for 1-D Lagrange interpolation polynomials. More...

Inheritance diagram for LagrangeInterpPolynomial:

BasisPolynomial List of all members.

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()

Detailed Description

Derived basis polynomial class for 1-D Lagrange interpolation polynomials.

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.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
Generated on Wed Nov 5 19:54:06 2008 for DAKOTA by  doxygen 1.5.1