41 unsigned int getParameterIndex (
const std::string & name );
55 Fitter (
const char * name );
78 virtual void copyFrom (
const Fitter * other );
82 const std::string & name ()
const;
109 void setDataSource (
const DataSource * source );
114 void setUseErrors (
bool yes =
true );
119 bool getUseErrors ()
const;
123 bool needsIntegrated ()
const;
127 void fillFreeParameters ( std::vector < double > & )
const;
132 virtual void setFixedFlags (
const std::vector < int > & flags );
145 virtual const std::vector < int > & getFixedFlags ()
const;
152 virtual void setLimits (
unsigned int i,
double lower,
double upper );
157 void setLimits (
const std::string & name,
163 virtual bool calcBestFit () = 0;
170 virtual void setStepSize (
unsigned int i,
double size );
174 void setStepSize (
const std::string & name,
double size );
179 virtual double objectiveValue()
const;
183 virtual int calcDegreesOfFreedom ()
const;
195 int calcCovariance ( std::vector < std::vector < double > > & cov );
199 virtual void setFitCut (
TupleCut * cut );
203 virtual void setFitRange (
bool yes =
true );
#define MDL_HIPPOPLOT_API
std::string m_name
The name of the fitter.
The class expresses a cut on a DataSource, i.e.
int m_max_iterations
The maximum number of iterations allowed in attempting the fit.
The base class for fitters.
numeric::array clone(numeric::array arr)
intp size(numeric::array arr)
A function that can be added to a DataRep and used in a fitter.
A derived class for FCNBase class.
StatedFCN * m_fcn
The objective function.
Base class for DataSource.