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