#include <RootFunctionAdapter.h>
Public Member Functions | |
void | addParameter (const boost::shared_ptr< double > &par) |
size_t | numberOfParameters () const |
double | operator() (const double *var) const |
RootFunctionAdapter (F &f) | |
RootFunctionAdapter () | |
void | setParameters (const double *pars) |
Private Attributes | |
F * | f_ |
std::vector< boost::shared_ptr < double > > | pars_ |
Definition at line 11 of file RootFunctionAdapter.h.
root::helper::RootFunctionAdapter< F, args >::RootFunctionAdapter | ( | ) | [inline] |
Definition at line 12 of file RootFunctionAdapter.h.
: f_(0) { }
root::helper::RootFunctionAdapter< F, args >::RootFunctionAdapter | ( | F & | f | ) | [inline] |
Definition at line 13 of file RootFunctionAdapter.h.
void root::helper::RootFunctionAdapter< F, args >::addParameter | ( | const boost::shared_ptr< double > & | par | ) | [inline] |
Definition at line 14 of file RootFunctionAdapter.h.
References root::helper::RootFunctionAdapter< F, args >::pars_.
{ pars_.push_back(par); }
size_t root::helper::RootFunctionAdapter< F, args >::numberOfParameters | ( | ) | const [inline] |
Definition at line 25 of file RootFunctionAdapter.h.
References root::helper::RootFunctionAdapter< F, args >::pars_.
{ return pars_.size(); }
double root::helper::RootFunctionAdapter< F, args >::operator() | ( | const double * | var | ) | const [inline] |
Definition at line 22 of file RootFunctionAdapter.h.
References root::helper::RootFunctionAdapter< F, args >::f_, and relativeConstraints::value.
{ return RootVarsAdapter<F, args>::value(*f_, var); }
void root::helper::RootFunctionAdapter< F, args >::setParameters | ( | const double * | pars | ) | [inline] |
F* root::helper::RootFunctionAdapter< F, args >::f_ [private] |
Definition at line 29 of file RootFunctionAdapter.h.
Referenced by root::helper::RootFunctionAdapter< F, args >::operator()().
std::vector<boost::shared_ptr<double> > root::helper::RootFunctionAdapter< F, args >::pars_ [private] |
Definition at line 30 of file RootFunctionAdapter.h.
Referenced by root::helper::RootFunctionAdapter< F, args >::addParameter(), root::helper::RootFunctionAdapter< F, args >::numberOfParameters(), and root::helper::RootFunctionAdapter< F, args >::setParameters().