#include <AIDA_Fitter.h>
Public Methods | |
AIDA_Fitter () | |
virtual | ~AIDA_Fitter () |
AIDA::IFitResult * | fit (AIDA::IFitData &fitData, AIDA::IFunction &func) |
Fit an IFunction to an IFitData. More... | |
AIDA::IFitResult * | fit (AIDA::IBaseHistogram &hist, AIDA::IFunction &func) |
Shortcut to fit an IBaseHistogram directly with an IFunction. More... | |
AIDA::IFitResult * | fit (AIDA::IBaseHistogram &hist, std::string model) |
Shortcut to fit an IBaseHistogram directly with predefined model. More... | |
AIDA::IFitResult * | fit (AIDA::IBaseHistogram &hist, std::string model, std::vector< double > &initialParameters) |
Shortcut to fit an IBaseHistogram directly with model and initial parameters. More... | |
AIDA::IFitResult * | fit (AIDA::IDataPointSet &dataPointSet, AIDA::IFunction &f) |
Shortcut to fit an IDataPointSet directly with an IFunction. More... | |
AIDA::IFitResult * | fit (AIDA::IDataPointSet &dataPointSet, std::string model) |
Shortcut to fit directly with predefined model. More... | |
AIDA::IFitResult * | fit (AIDA::IDataPointSet &dataPointSet, std::string model, std::vector< double > &initialParameters) |
Shortcut to fit directly with model and initial parameters. More... | |
AIDA::IFitResult * | fit (AIDA::IFitData &d, std::string model) |
Shortcut for the predefined models. More... | |
AIDA::IFitResult * | fit (AIDA::IFitData &d, std::string model, std::vector< double > &initialParameters) |
bool | setEngine (std::string name) |
std::string | engineName () |
AIDA::IFitParameterSettings & | fitParameterSettings (std::string name) |
const std::vector< std::string > & | listParameterSettings () |
void | resetParameterSettings () |
bool | setConstraint (std::string expr) |
const std::vector< std::string > & | constraints () |
Get the list of all constraints. More... | |
void | resetConstraints () |
bool | setFitMethod (std::string name) |
std::string | fitMethodName () |
AIDA::IDataPointSet * | createScan1D (AIDA::IFitData &d, AIDA::IFunction &f, std::string par, int npts, double pmin, double pmax) |
Create a 1D scan of the fit quality for given parameter 'par' of the function. More... | |
AIDA::IDataPointSet * | createContour (AIDA::IFitData &d, AIDA::IFitResult &r, std::string par1, std::string par2, int npts, double up) |
Create a 2D contour spanned on 'par1' and 'par2', with given number of npts points. Contour is create using previously obtained fit results. Argument 'up' tells the vertical distance of the contour plane above the minimal fit quality value. More... | |
void | setUseFunctionGradient (bool useGrad) |
bool | useFunctionGradient () |
bool | setOptions (const std::string &options) |
not in AIDA interface. More... | |
Protected Methods | |
AIDA::IFitResult * | fit (AIDA::IFitData &d, Anaphe::FML::IFMLFunction &f) |
private method used by all others to call FML:Fitter to fit. More... | |
bool | connect (AIDA::IFitData &d, AIDA::IBaseHistogram &h) |
bool | connect (AIDA::IFitData &d, AIDA::IDataPointSet &dps) |
Private Types | |
typedef std::map< std::string, AIDA_FitParameterSettings * > | FitParMap |
Private Methods | |
AIDA_Fitter (const AIDA_Fitter &) | |
AIDA_Fitter & | operator= (const AIDA_Fitter &) |
Private Attributes | |
Anaphe::FML::Fitter * | m_fitter |
FitParMap | m_parmap |
std::vector< std::string > | m_constr |
|
Definition at line 203 of file AIDA_Fitter.h. |
|
Definition at line 68 of file AIDA_Fitter.cpp. References m_fitter. |
|
Definition at line 73 of file AIDA_Fitter.cpp. |
|
Definition at line 83 of file AIDA_Fitter.cpp. |
|
Definition at line 527 of file AIDA_Fitter.cpp. |
|
Definition at line 449 of file AIDA_Fitter.cpp. Referenced by fit. |
|
Definition at line 385 of file AIDA_Fitter.cpp. References m_constr. |
|
Definition at line 410 of file AIDA_Fitter.cpp. |
|
Definition at line 404 of file AIDA_Fitter.cpp. |
|
Get the name of the engine currently in use. Definition at line 355 of file AIDA_Fitter.cpp. References m_fitter. |
|
Definition at line 140 of file AIDA_Fitter.cpp. References fitMethodName, m_fitter, and setFitMethod. |
|
Definition at line 340 of file AIDA_Fitter.cpp. References fit. |
|
Definition at line 332 of file AIDA_Fitter.cpp. References fit. |
|
Shortcut to fit an IDataPointSet directly with an IFunction. Definition at line 314 of file AIDA_Fitter.cpp. |
|
Shortcut to fit an IDataPointSet directly with an IFunction. Definition at line 299 of file AIDA_Fitter.cpp. |
|
Shortcut to fit an IDataPointSet directly with an IFunction. Definition at line 289 of file AIDA_Fitter.cpp. |
|
Shortcut to fit an IBaseHistogram directly with an IFunction. Definition at line 274 of file AIDA_Fitter.cpp. |
|
Shortcut to fit an IBaseHistogram directly with an IFunction. Definition at line 260 of file AIDA_Fitter.cpp. |
|
Shortcut to fit an IBaseHistogram directly with an IFunction. Definition at line 223 of file AIDA_Fitter.cpp. |
|
Fit an IFunction to an IFitData. Definition at line 96 of file AIDA_Fitter.cpp. Referenced by fit. |
|
Get the name of the fit method currently in use. Definition at line 399 of file AIDA_Fitter.cpp. References m_fitter. Referenced by fit. |
|
Access to fit parameter settings. FitParameterSettings object belongs to Definition at line 360 of file AIDA_Fitter.cpp. |
|
Get a vector of names of all parameter settings defined in the fitter. Definition at line 367 of file AIDA_Fitter.cpp. References m_fitter. |
|
Definition at line 87 of file AIDA_Fitter.cpp. |
|
Reset all the constraints. Definition at line 390 of file AIDA_Fitter.cpp. |
|
Reset all parameter settings which fitter remebers. Definition at line 372 of file AIDA_Fitter.cpp. References m_fitter. |
|
Set a general constraint in the parameter space. The constraint is a parsed expression. PENDING: The syntax to be fixed. Definition at line 377 of file AIDA_Fitter.cpp. |
|
Set the optimization engine which is used internally for fitting. Definition at line 350 of file AIDA_Fitter.cpp. References m_fitter. Referenced by Anaphe::AIDA_Fitter_FML::AIDA_FitFactory::createFitter. |
|
Set the fit method type. Definition at line 394 of file AIDA_Fitter.cpp. References m_fitter. Referenced by Anaphe::AIDA_Fitter_FML::AIDA_FitFactory::createFitter, and fit. |
|
Definition at line 429 of file AIDA_Fitter.cpp. References m_fitter. Referenced by Anaphe::AIDA_Fitter_FML::AIDA_FitFactory::createFitter. |
|
Choose between using or not using the analytical derivatives if provided by the function.
Definition at line 416 of file AIDA_Fitter.cpp. |
|
Check if the IFitter is set to use the analytical derivatives provided by the IFunction.
Definition at line 421 of file AIDA_Fitter.cpp. |
|
Definition at line 205 of file AIDA_Fitter.h. Referenced by constraints. |
|
Definition at line 201 of file AIDA_Fitter.h. Referenced by AIDA_Fitter, engineName, fit, fitMethodName, fitParameterSettings, listParameterSettings, resetParameterSettings, setEngine, setFitMethod, setOptions, and ~AIDA_Fitter. |
|
Definition at line 204 of file AIDA_Fitter.h. Referenced by fitParameterSettings, and ~AIDA_Fitter. |