MBSim |
Project Page |
template class for differentiable functions with one scalar parameter More...
#include <function.h>
Public Member Functions | |
| DifferentiableFunction1 () | |
| constructor | |
| virtual | ~DifferentiableFunction1 () |
| destructor | |
| virtual Ret | operator() (const double &x, const void *=NULL) |
| const Function1< Ret, double > & | getDerivative (int degree) const |
| Function1< Ret, double > & | getDerivative (int degree) |
| void | addDerivative (Function1< Ret, double > *diff) |
| void | setDerivative (Function1< Ret, double > *diff, size_t degree) |
| void | setOrderOfDerivative (int i) |
| virtual void | initializeUsingXML (MBXMLUtils::TiXmlElement *element) |
| initialize function with XML code | |
| MBXMLUtils::TiXmlElement * | writeXMLFile (MBXMLUtils::TiXmlNode *parent) |
| std::string | getType () const |
Protected Attributes | |
|
std::vector< Function1< Ret, double > * > | derivatives |
| vector of derivatives | |
| int | order |
template class for differentiable functions with one scalar parameter
| void MBSim::DifferentiableFunction1< Ret >::addDerivative | ( | Function1< Ret, double > * | diff | ) | [inline] |
| highest | derivative to add |
| const Function1<Ret,double>& MBSim::DifferentiableFunction1< Ret >::getDerivative | ( | int | degree | ) | const [inline] |
| degree | of derivative |
| Function1<Ret,double>& MBSim::DifferentiableFunction1< Ret >::getDerivative | ( | int | degree | ) | [inline] |
| degree | of derivative |
| std::string MBSim::DifferentiableFunction1< Ret >::getType | ( | ) | const [inline, virtual] |
Reimplemented from MBSim::Function1< Ret, double >.
Reimplemented in MBSim::SinusFunction1_VS< Col >, and MBSim::SinusFunction1_VS< fmatvec::Ref >.
| virtual void MBSim::DifferentiableFunction1< Ret >::initializeUsingXML | ( | MBXMLUtils::TiXmlElement * | element | ) | [inline, virtual] |
initialize function with XML code
| XML | element |
Reimplemented from MBSim::Function1< Ret, double >.
Reimplemented in MBSim::Polynom1_SS, MBSim::PositiveSinusFunction1_VS, MBSim::PPolynom< Row, Col >, MBSim::SinusFunction1_VS< Col >, MBSim::SinusFunction1_VS< fmatvec::Ref >, and MBSim::QuadraticFunction1_VS< Col >.
| virtual Ret MBSim::DifferentiableFunction1< Ret >::operator() | ( | const double & | x, |
| const void * | = NULL |
||
| ) | [inline, virtual] |
| argument | of function |
| optional | parameter class |
Implements MBSim::Function1< Ret, double >.
Reimplemented in MBSim::PositiveSinusFunction1_VS.
| void MBSim::DifferentiableFunction1< Ret >::setDerivative | ( | Function1< Ret, double > * | diff, |
| size_t | degree | ||
| ) | [inline] |
| derivative | to add |
| degree | of the derivative |
| void MBSim::DifferentiableFunction1< Ret >::setOrderOfDerivative | ( | int | i | ) | [inline] |
| orderOfDerivative |
1.8.0