Rythmos::HermiteInterpolator< Scalar > Class Template Reference

#include <Rythmos_HermiteInterpolator.hpp>

Inheritance diagram for Rythmos::HermiteInterpolator< Scalar >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ~HermiteInterpolator ()
 Destructor.
 HermiteInterpolator ()
 Constructor.
void interpolate (const typename DataStore< Scalar >::DataStoreVector_t &data_in, const Array< Scalar > &t_values, typename DataStore< Scalar >::DataStoreVector_t *data_out) const
 Interpolation: Hermite interpolation function.
int order () const
 Order of interpolation:.
std::string description () const
 Inherited from Teuchos::Describable .
void describe (Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const
 
void setParameterList (Teuchos::RCP< Teuchos::ParameterList > const &paramList)
 Redefined from Teuchos::ParameterListAcceptor .
Teuchos::RCP< Teuchos::ParameterListgetParameterList ()
 
Teuchos::RCP< Teuchos::ParameterListunsetParameterList ()
 
void assertInterpolatePreconditions (const typename DataStore< Scalar >::DataStoreVector_t &data_in, const Array< Scalar > &t_values, typename DataStore< Scalar >::DataStoreVector_t *data_out) const

Detailed Description

template<class Scalar>
class Rythmos::HermiteInterpolator< Scalar >

This class implements piecewise Hermite interpolation on each interval where the data is: (x0,f(x0)), (x1,f(x1)), (x0,f'(x0)), (x1,f'(x1)) The Hermite Interpolation polynomial is: H_3(x) = f[z0] + f[z0,z1](x-x0) + f[z0,z1,z2](x-x0)^2 + f[z0,z1,z2,z3](x-x0)^2(x-x1) where z0 = z1 = x0 and z2 = z3 = x1 and f[z0,z1] = f'(x0) and f[z2,z3] = f'(x1) This reduces to: H_3(x) = f(x0) + f'(x0)(x-x0) + ((f(x1)-f(x0))/(x1-x0) - f'(x0))(x-x0)^2/(x1-x0) +(f'(x1) - 2(f(x1)-f(x0))/(x1-x0) + f'(x0))(x-x0)^2(x-x1)/(x1-x0)^2 With derivative: H_3'(x) = f'(x0) + 2*((f(x1)-f(x0))/(x1-x0) - f'(x0))(x-x0)/(x1-x0) +(f'(x1) - 2(f(x1)-f(x0))/(x1-x0) + f'(x0))[2*(x-x0)(x-x1) + (x-x0)^2]/(x1-x0)^2 With the error expression: f(x) - H_3(x) = (f^{(3)}((x))/(4!))(x-x0)^2(x-x1)^2 Which is 2nd order in f(x) and 1st order in f'(x)

Definition at line 53 of file Rythmos_HermiteInterpolator.hpp.


Constructor & Destructor Documentation

template<class Scalar>
Rythmos::HermiteInterpolator< Scalar >::~HermiteInterpolator (  )  [inline]

Destructor.

Definition at line 58 of file Rythmos_HermiteInterpolator.hpp.

template<class Scalar>
Rythmos::HermiteInterpolator< Scalar >::HermiteInterpolator (  ) 

Constructor.

Definition at line 113 of file Rythmos_HermiteInterpolator.hpp.


Member Function Documentation

template<class Scalar>
void Rythmos::HermiteInterpolator< Scalar >::interpolate ( const typename DataStore< Scalar >::DataStoreVector_t &  data_in,
const Array< Scalar > &  t_values,
typename DataStore< Scalar >::DataStoreVector_t *  data_out 
) const [virtual]

Interpolation: Hermite interpolation function.

Preconditions:

Implements Rythmos::InterpolatorBase< Scalar >.

Definition at line 118 of file Rythmos_HermiteInterpolator.hpp.

template<class Scalar>
int Rythmos::HermiteInterpolator< Scalar >::order (  )  const [virtual]

Order of interpolation:.

Implements Rythmos::InterpolatorBase< Scalar >.

Definition at line 234 of file Rythmos_HermiteInterpolator.hpp.

template<class Scalar>
std::string Rythmos::HermiteInterpolator< Scalar >::description (  )  const [virtual]

Inherited from Teuchos::Describable .

Reimplemented from Teuchos::Describable.

Definition at line 240 of file Rythmos_HermiteInterpolator.hpp.

template<class Scalar>
void Rythmos::HermiteInterpolator< Scalar >::describe ( Teuchos::FancyOStream out,
const Teuchos::EVerbosityLevel  verbLevel 
) const [virtual]

Reimplemented from Teuchos::Describable.

Definition at line 247 of file Rythmos_HermiteInterpolator.hpp.

template<class Scalar>
void Rythmos::HermiteInterpolator< Scalar >::setParameterList ( Teuchos::RCP< Teuchos::ParameterList > const &  paramList  )  [virtual]

Redefined from Teuchos::ParameterListAcceptor .

Implements Teuchos::ParameterListAcceptor.

Definition at line 263 of file Rythmos_HermiteInterpolator.hpp.

template<class Scalar>
Teuchos::RCP< Teuchos::ParameterList > Rythmos::HermiteInterpolator< Scalar >::getParameterList (  )  [virtual]

Implements Teuchos::ParameterListAcceptor.

Definition at line 272 of file Rythmos_HermiteInterpolator.hpp.

template<class Scalar>
Teuchos::RCP< Teuchos::ParameterList > Rythmos::HermiteInterpolator< Scalar >::unsetParameterList (  )  [virtual]

Implements Teuchos::ParameterListAcceptor.

Definition at line 278 of file Rythmos_HermiteInterpolator.hpp.


The documentation for this class was generated from the following file:
Generated on Tue Oct 20 12:46:09 2009 for Rythmos - Transient Integration for Differential Equations by doxygen 1.4.7