#include <Rythmos_HermiteInterpolator.hpp>
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 ¶mList) |
| Redefined from ParameterListAcceptor. | |
| RCP< ParameterList > | getNonconstParameterList () |
| | |
| RCP< ParameterList > | unsetParameterList () |
| | |
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.
| Rythmos::HermiteInterpolator< Scalar >::~HermiteInterpolator | ( | ) | [inline] |
Destructor.
Definition at line 58 of file Rythmos_HermiteInterpolator.hpp.
| Rythmos::HermiteInterpolator< Scalar >::HermiteInterpolator | ( | ) | [inline] |
Constructor.
Definition at line 113 of file Rythmos_HermiteInterpolator.hpp.
| 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:
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.
| int Rythmos::HermiteInterpolator< Scalar >::order | ( | ) | const [inline, virtual] |
Order of interpolation:.
Implements Rythmos::InterpolatorBase< Scalar >.
Definition at line 237 of file Rythmos_HermiteInterpolator.hpp.
| 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.
| 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.
| 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.
| RCP< ParameterList > Rythmos::HermiteInterpolator< Scalar >::getNonconstParameterList | ( | ) | [inline, virtual] |
Implements Teuchos::ParameterListAcceptor.
Definition at line 279 of file Rythmos_HermiteInterpolator.hpp.
| RCP< ParameterList > Rythmos::HermiteInterpolator< Scalar >::unsetParameterList | ( | ) | [inline, virtual] |
Implements Teuchos::ParameterListAcceptor.
Definition at line 285 of file Rythmos_HermiteInterpolator.hpp.
1.6.1