8 #define AIDA_IFITTER_H 1
23 class IFitParameterSettings;
126 virtual IFitResult *
fit(
IDataPointSet & dataPointSet,
const std::string & model,
const std::vector<double> & initialParameters) = 0;
131 virtual IFitResult *
fit(
IFitData & d,
const std::string & model,
const std::vector<double> & initialParameters) = 0;
141 virtual bool setEngine(
const std::string & name) = 0;
180 virtual std::vector<std::string>
constraints() = 0;
194 virtual bool setFitMethod(
const std::string & name) = 0;
virtual IDataPointSet * createContour(IFitData &d, IFitResult &r, const std::string &par1, const std::string &par2, int npts, double up)=0
Create a 2D contour spanned on 'par1' and 'par2', with given number of npts points.
virtual std::vector< std::string > constraints()=0
Get the list of all constraints.
Principal user-level function interface.
Definition: IFunction.h:35
virtual void resetConstraints()=0
Reset all the constraints.
virtual std::string engineName()=0
Get the name of the engine currently in use.
virtual bool useFunctionGradient()=0
Check if the IFitter is set to use the analytical derivatives provided by the IFunction.
virtual bool setFitMethod(const std::string &name)=0
Set the fit method type.
Basic user-level interface class for holding and managing a single set of "data points".
Definition: IDataPointSet.h:31
virtual void setUseFunctionGradient(bool useGrad)=0
Choose between using or not using the analytical derivatives if provided by the function.
Definition: IFitParameterSettings.h:27
Definition: IFitResult.h:35
class IAnnotation;
Definition: IBaseHistogram.h:29
virtual std::string fitMethodName()=0
Get the name of the fit method currently in use.
virtual bool setConstraint(const std::string &expr)=0
Set a general constraint in the parameter space.
virtual ~IFitter()
Destructor.
Definition: IFitter.h:43
Definition: IFitData.h:92
virtual void resetParameterSettings()=0
Reset all parameter settings which fitter remebers.
virtual std::vector< std::string > listParameterSettings()=0
Get a vector of names of all parameter settings defined in the fitter.
virtual bool setEngine(const std::string &name)=0
Set the optimization engine which is used internally for fitting.
virtual IFitResult * fit(IFitData &fitData, IFunction &func)=0
Fit an IFunction to an IFitData.
virtual IFitParameterSettings & fitParameterSettings(const std::string &name)=0
Access to fit parameter settings.
virtual IDataPointSet * createScan1D(IFitData &d, IFunction &f, const std::string &par, int npts, double pmin, double pmax)=0
Create a 1D scan of the fit quality for given parameter 'par' of the function.
Fitter performs fits, scans and computes contours.
Definition: IFitter.h:39