#include <centered_difference.h>
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. | |
1.4.7