14 #ifndef FunctionWrap_H
15 #define FunctionWrap_H
42 boost::python::object
get_owner (
T * me )
const;
70 void setParmNames (
const std::vector < std::string > & names );
91 double operator () (
const std::vector < double > & )
const;
106 #endif // FunctionWrap_H
An abstract base class to help FunctionBase objects perform some operations.
hippodraw::FunctionBase class interface
void setParmNames(const std::vector< std::string > &names)
Sets the names of the parameters and re-sizes the number of parameters available. ...
const std::string & name() const
Returns the name of the function.
FunctionBase * clone() const
Make copy of object, including copy of Python object.
unsigned int dimensions() const
Returns the number of dimensions of the data coordinate.
virtual bool hasDerivatives() const
Returns true if the Python function has implemented returning partial derivatives.
boost::python::object invert_ownership
The new ownership.
double operator()(double) const
void initialParameters(const FunctionHelper *)
Sets the FunctionHelper so that the function can calculate a reasonable set of initial parameter valu...
void setName(const std::string &name)
Sets the name of the function.
FunctionWrap()
The default constructor.
A wrapper class for FunctionBase.
virtual ~FunctionWrap()
The destructor.
A function that can be added to a DataRep and used in a fitter.
boost::python::object get_owner(T *me) const
Find the Python object that owns this object.
double derivByParm(int, double) const