#include <Differentiator.h>
Users should not access this class directly; instead, use one of the specialized function classes ScalarFunction, GradientFunction, or JacobianFunction depending on the type of function you want to differentiate.
The Differentiator class will assume the function is calculated to about machine accuracy unless told otherwise. But if f is the result of some approximate calculation (for example, it came from another Differentiator approximation, or from numerical integration), we will need to know that in order to have a reasonable crack at calculating df.
Public Member Functions | |
Function & | setNFunctions (int) |
Function & | setNParameters (int) |
Function & | setEstimatedAccuracy (Real) |
int | getNFunctions () const |
int | getNParameters () const |
Real | getEstimatedAccuracy () const |
void | resetAllStatistics () |
long | getNCalls () const |
long | getNFailures () const |
Protected Member Functions | |
Function () | |
~Function () | |
Protected Attributes | |
Differentiator::FunctionRep * | rep |
Friends | |
class | Differentiator |
class | Differentiator::FunctionRep |
Function | ( | ) | [protected] |
~Function | ( | ) | [protected] |
Function& setNFunctions | ( | int | ) |
Function& setNParameters | ( | int | ) |
int getNFunctions | ( | ) | const |
Referenced by main().
int getNParameters | ( | ) | const |
Referenced by main().
Real getEstimatedAccuracy | ( | ) | const |
Referenced by main().
void resetAllStatistics | ( | ) |
Referenced by main().
long getNCalls | ( | ) | const |
Referenced by main().
long getNFailures | ( | ) | const |
Referenced by main().
friend class Differentiator [friend] |
friend class Differentiator::FunctionRep [friend] |
Differentiator::FunctionRep* rep [protected] |