DerivativeCenteredDifference< Functor > Class Template Reference
[Derivative with the Centered Difference Scheme]

The numerical derivative of a functor. More...

#include <centered_difference.h>

List of all members.

Public Types

typedef Functor function_type
 The function to differentiate.
typedef base_type::argument_type argument_type
 The argument type.
typedef base_type::result_type result_type
 The result type.

Public Member Functions

 DerivativeCenteredDifference (const function_type &f, const argument_type delta=std::pow(std::numeric_limits< argument_type >::epsilon(), 1.0/3.0))
 Construct from the functor.
 DerivativeCenteredDifference (const DerivativeCenteredDifference &x)
 Copy constructor.
void operator() (const argument_type x, result_type &deriv) const
 Calculate f'(x).
result_type operator() (const argument_type x) const
 Return f'(x).
argument_type delta () const
 Return the differencing offset.
void set_delta (const argument_type delta)
 Set the differencing offset.

Detailed Description

template<class Functor>
class DerivativeCenteredDifference< Functor >

The numerical derivative of a functor.


The documentation for this class was generated from the following file:
Generated on Thu Jun 30 02:15:00 2016 for Numerical Algorithms Package by  doxygen 1.6.3