13 #include "msdevstudio/MSconfig.h"
26 using namespace hippodraw;
64 double qa=0,qb=0,qc=0,qx=0,qy=0;
virtual double operator()(double x) const
The function call operator.
virtual FunctionBase * clone() const
Creates a new function object by copying an existing one.
virtual int size() const
Returns the number of parameters.
hippodraw::Novosibirsk class interface
FunctionHelper class interface.
Novosibirsk()
The default constructor.
virtual double derivByParm(int i, double x) const
Returns the function's derivative at the coordinate value x with respect to the i-th parameter...
std::vector< double > m_parms
The parameter values.
virtual double minCoord() const =0
Returns the smallest coordinate value along the X axis in the data set.
virtual bool hasDerivatives() const
Returns false as this function has not implemented calculation of partial derivatives.
A function that can be added to a DataRep and used in a fitter.
An abstract base class to help FunctionBase objects perform some operations.
virtual double stdCoord() const =0
Returns the standard deviation of the coordinates along a X axis in the data set. ...
virtual double maxCoord() const =0
Returns the largest coordinate value along the X axis in the data set.
std::string m_name
The name of the function.
virtual double getTotal() const =0
Returns the sum of the values of the data set.
std::vector< std::string > m_parm_names
The names of the function parameters.
virtual void initialize()
Initializes the function and parameter names.
virtual void resize()
Re-sizes the appropriate vectors maintained in this base class.
virtual void initialParameters(const FunctionHelper *helper)
Sets the FunctionHelper so that the function can calculate a reasonable set of initial parameter valu...
virtual double meanCoord() const =0
Returns the mean of the coordinates along a X axis in the data set.
virtual int size() const =0
Returns the number of points in the data set.