60 virtual void initialize ();
68 Landau (
double peak,
double counts,
double sigma );
73 virtual double operator () (
double x )
const;
78 virtual bool hasDerivatives ()
const;
87 inline double calcY (
double x )
const
89 return ( x - m_parms[peak] ) / m_parms[sigma];
95 inline double calcZ (
double x )
const
97 double y = calcY ( x );
99 return -0.5 * ( 1.0 - std::exp ( -y ) );
104 double derivByNorm (
double x )
const;
108 double derivByPeak (
double x )
const;
112 double derivBySigma (
double x )
const;
#define MDL_HIPPOPLOT_API
The function represents the Landau distribution.
double calcY(double x) const
compute the reduced variable:
Index to the normalization parameter.
double calcZ(double x) const
Compute the helper variable for derivation: .
numeric::array clone(numeric::array arr)
Index to the peak parameter.
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.
hippodraw::FunctionBase class interface