51 virtual void initialize();
58 Erfc (
double mean,
double sigma,
double norm );
63 virtual double operator () (
double x )
const;
68 double calcErfc(
double x)
const;
71 virtual double derivByParm (
int i,
double x )
const;
73 double derivByRed (
double value)
const;
79 if(m_parms[SIGMA] == 0.0) {
80 Erfc * p = const_cast <
Erfc * > ( this );
84 return (value - m_parms[MEAN])/m_parms[SIGMA];
#define MDL_HIPPOPLOT_API
A function that can be used with a fitter.
std::vector< double > m_parms
The parameter values.
numeric::array clone(numeric::array arr)
A function that can be added to a DataRep and used in a fitter.
double norm(const std::vector< double > &a)
Computes the two norm of the vector.
An abstract base class to help FunctionBase objects perform some operations.
hippodraw::FunctionBase class interface
double calcRed(double value) const
compute the reduced variable: