Simbody
3.7
|
This abstract class defines a function to be differentiated (repeatedly) by a Differentiator object. More...
Public Member Functions | |
Function & | setNumFunctions (int) |
Function & | setNumParameters (int) |
Function & | setEstimatedAccuracy (Real) |
int | getNumFunctions () const |
int | getNumParameters () const |
Real | getEstimatedAccuracy () const |
void | resetAllStatistics () |
int | getNumCalls () const |
int | getNumFailures () const |
Protected Member Functions | |
Function () | |
~Function () | |
Protected Attributes | |
FunctionRep * | rep |
Friends | |
class | Differentiator |
This abstract class defines a function to be differentiated (repeatedly) by a Differentiator object.
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.
|
protected |
|
protected |
Function& SimTK::Differentiator::Function::setNumFunctions | ( | int | ) |
Function& SimTK::Differentiator::Function::setNumParameters | ( | int | ) |
int SimTK::Differentiator::Function::getNumFunctions | ( | ) | const |
int SimTK::Differentiator::Function::getNumParameters | ( | ) | const |
Real SimTK::Differentiator::Function::getEstimatedAccuracy | ( | ) | const |
void SimTK::Differentiator::Function::resetAllStatistics | ( | ) |
int SimTK::Differentiator::Function::getNumCalls | ( | ) | const |
int SimTK::Differentiator::Function::getNumFailures | ( | ) | const |
|
friend |
|
protected |