Definition at line 18 of file FunctionBase.sip.
Public Member Functions | |
virtual | ~FunctionBase () |
const std::string & | name () const |
Returns the name of the function. | |
virtual FunctionBase * | clone () const |
Creates a new function object by copying an existing one. | |
if (!sipResObj||sipParseResult(0, sipMethod, sipResObj,"L", sipForceConvertTo_FunctionBase,&sipRes)< 0) | |
sipTransfer (sipResObj, 1) | |
virtual End int | size () const |
Returns the number of parameters. | |
virtual const std::vector< std::string > & | parmNames () |
Returns a reference to a vector of parameter names. | |
void | setParmNames (const std::vector< std::string > &) |
Sets the parameter names. | |
virtual bool | isComposite () const |
Returns false . | |
virtual void | addToComposite (FunctionBase *) |
Does nothing. | |
virtual void | removeFromComposite (FunctionBase *) |
Does nothing. | |
virtual int | count () |
Returns 0. | |
virtual const std::vector< double > & | getParameters () |
Returns the values of the parameters as a vector. | |
virtual void | setParameters (const std::vector< double > &) |
Sets the parameter values. | |
virtual double | operator() (double) const =0 |
The function call operator. | |
virtual bool | hasDerivatives () const |
Returns true if function can calculate its partial derivatives. | |
virtual double | integrate (double, double) const |
Returns the integral of the function from the lower limit to the higher limit. | |
Public Attributes | |
VirtualCatcherCode PyObject * | sipResObj = sipCallMethod ( 0, sipMethod, "" ) |
Protected Member Functions | |
FunctionBase () | |
FunctionBase (const FunctionBase &) | |
virtual double | derivByParm (int, double) const =0 |
void | setName (const char *) |
virtual void | initialize ()=0 |
|
|
|
|
|
|
|
Does nothing. Derived classes that are a composite of functions should override this member function and add functions to the composite. |
|
Creates a new function object by copying an existing one.
|
|
Returns 0. Derived classes that are a composite of functions should override this member function to return the number of functions in the composite. |
|
|
|
Returns the values of the parameters as a vector. The function is non-const because a derived class may need to create the vector. |
|
Returns
This base class implementation returns |
|
Definition at line 52 of file FunctionBase.sip. |
|
|
|
Returns the integral of the function from the lower limit to the higher limit. As of now all the integration is done here numerically using the trapeziodal rule. Derived class may implement an analytical expression in place of this numerical method |
|
Returns
Derived classes that are a composite of functions should override this member function and return |
|
Returns the name of the function.
|
|
The function call operator.
|
|
Returns a reference to a vector of parameter names.
|
|
Does nothing. Derived classes that are a composite of functions should override this member function and remove functions from the composite. |
|
|
|
Sets the parameter values. Derived classes should implement this function by invoking incrementValues ( vector< double >::const_iterator ) so that they correctly work with the LinearSumFunction class. |
|
Sets the parameter names.
|
|
|
|
Returns the number of parameters.
|
|
Definition at line 51 of file FunctionBase.sip. |