Rythmos::HermiteInterpolator< Scalar > Class Template Reference

#include <Rythmos_HermiteInterpolator.hpp>

Inheritance diagram for Rythmos::HermiteInterpolator< Scalar >:
[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:.
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 (RCP< ParameterList > const &paramList)
 Redefined from ParameterListAcceptor.
RCP< ParameterListgetNonconstParameterList ()
 
RCP< ParameterListunsetParameterList ()
 

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 (  )  [inline]

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 [inline, virtual]

Interpolation:.

Hermite interpolation function. Preconditions:

  • Preconditions of InterpolatorBase<Scalar> apply
  • data_in[i].xdot != Teuchos::null for all i=0..data_in.size()-1

Implements Rythmos::InterpolatorBase< Scalar >.

Definition at line 118 of file Rythmos_HermiteInterpolator.hpp.

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

Order of interpolation:.

Implements Rythmos::InterpolatorBase< Scalar >.

Definition at line 237 of file Rythmos_HermiteInterpolator.hpp.

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

Inherited from Teuchos::Describable.

Reimplemented from Teuchos::Describable.

Definition at line 243 of file Rythmos_HermiteInterpolator.hpp.

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

Reimplemented from Teuchos::Describable.

Definition at line 250 of file Rythmos_HermiteInterpolator.hpp.

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

Redefined from ParameterListAcceptor.

Implements Teuchos::ParameterListAcceptor.

Definition at line 270 of file Rythmos_HermiteInterpolator.hpp.

template<class Scalar >
RCP< ParameterList > Rythmos::HermiteInterpolator< Scalar >::getNonconstParameterList (  )  [inline, virtual]

Implements Teuchos::ParameterListAcceptor.

Definition at line 279 of file Rythmos_HermiteInterpolator.hpp.

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

Implements Teuchos::ParameterListAcceptor.

Definition at line 285 of file Rythmos_HermiteInterpolator.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends

Generated on Tue Oct 20 10:24:10 2009 for Rythmos - Transient Integration for Differential Equations by  doxygen 1.6.1