Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Anaphe::AIDA_Fitter_FML::AIDA_Fitter Class Reference

#include <AIDA_Fitter.h>

List of all members.

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


Member Typedef Documentation

typedef std::map<std::string, AIDA_FitParameterSettings *> Anaphe::AIDA_Fitter_FML::AIDA_Fitter::FitParMap [private]
 

Definition at line 203 of file AIDA_Fitter.h.


Constructor & Destructor Documentation

Anaphe::AIDA_Fitter_FML::AIDA_Fitter::AIDA_Fitter  
 

Definition at line 68 of file AIDA_Fitter.cpp.

References m_fitter.

Anaphe::AIDA_Fitter_FML::AIDA_Fitter::~AIDA_Fitter   [virtual]
 

Definition at line 73 of file AIDA_Fitter.cpp.

References m_fitter, and m_parmap.

Anaphe::AIDA_Fitter_FML::AIDA_Fitter::AIDA_Fitter const AIDA_Fitter &    [private]
 

Definition at line 83 of file AIDA_Fitter.cpp.


Member Function Documentation

bool Anaphe::AIDA_Fitter_FML::AIDA_Fitter::connect AIDA::IFitData &    d,
AIDA::IDataPointSet &    dps
[protected]
 

Definition at line 527 of file AIDA_Fitter.cpp.

bool Anaphe::AIDA_Fitter_FML::AIDA_Fitter::connect AIDA::IFitData &    d,
AIDA::IBaseHistogram &    h
[protected]
 

Definition at line 449 of file AIDA_Fitter.cpp.

Referenced by fit.

const std::vector< std::string > & Anaphe::AIDA_Fitter_FML::AIDA_Fitter::constraints  
 

Definition at line 385 of file AIDA_Fitter.cpp.

References m_constr.

AIDA::IDataPointSet * Anaphe::AIDA_Fitter_FML::AIDA_Fitter::createContour AIDA::IFitData &    d,
AIDA::IFitResult &    r,
std::string    par1,
std::string    par2,
int    npts,
double    up
 

Definition at line 410 of file AIDA_Fitter.cpp.

AIDA::IDataPointSet * Anaphe::AIDA_Fitter_FML::AIDA_Fitter::createScan1D AIDA::IFitData &    d,
AIDA::IFunction &    f,
std::string    par,
int    npts,
double    pmin,
double    pmax
 

Definition at line 404 of file AIDA_Fitter.cpp.

std::string Anaphe::AIDA_Fitter_FML::AIDA_Fitter::engineName  
 

Get the name of the engine currently in use.

Definition at line 355 of file AIDA_Fitter.cpp.

References m_fitter.

AIDA::IFitResult * Anaphe::AIDA_Fitter_FML::AIDA_Fitter::fit AIDA::IFitData &    d,
Anaphe::FML::IFMLFunction &    f
[protected]
 

Definition at line 140 of file AIDA_Fitter.cpp.

References fitMethodName, m_fitter, and setFitMethod.

AIDA::IFitResult * Anaphe::AIDA_Fitter_FML::AIDA_Fitter::fit AIDA::IFitData &    d,
std::string    model,
std::vector< double > &    initialParameters
 

Definition at line 340 of file AIDA_Fitter.cpp.

References fit.

AIDA::IFitResult * Anaphe::AIDA_Fitter_FML::AIDA_Fitter::fit AIDA::IFitData &    d,
std::string    model
 

Definition at line 332 of file AIDA_Fitter.cpp.

References fit.

AIDA::IFitResult * Anaphe::AIDA_Fitter_FML::AIDA_Fitter::fit AIDA::IDataPointSet &    dataPointSet,
std::string    model,
std::vector< double > &    initialParameters
 

Shortcut to fit an IDataPointSet directly with an IFunction.

Definition at line 314 of file AIDA_Fitter.cpp.

References connect, and fit.

AIDA::IFitResult * Anaphe::AIDA_Fitter_FML::AIDA_Fitter::fit AIDA::IDataPointSet &    dataPointSet,
std::string    model
 

Shortcut to fit an IDataPointSet directly with an IFunction.

Definition at line 299 of file AIDA_Fitter.cpp.

References connect, and fit.

AIDA::IFitResult * Anaphe::AIDA_Fitter_FML::AIDA_Fitter::fit AIDA::IDataPointSet &    dataPointSet,
AIDA::IFunction &    f
 

Shortcut to fit an IDataPointSet directly with an IFunction.

Definition at line 289 of file AIDA_Fitter.cpp.

References connect, and fit.

AIDA::IFitResult * Anaphe::AIDA_Fitter_FML::AIDA_Fitter::fit AIDA::IBaseHistogram &    hist,
std::string    model,
std::vector< double > &    initialParameters
 

Shortcut to fit an IBaseHistogram directly with an IFunction.

Definition at line 274 of file AIDA_Fitter.cpp.

References connect, and fit.

AIDA::IFitResult * Anaphe::AIDA_Fitter_FML::AIDA_Fitter::fit AIDA::IBaseHistogram &    hist,
std::string    model
 

Shortcut to fit an IBaseHistogram directly with an IFunction.

Definition at line 260 of file AIDA_Fitter.cpp.

References connect, and fit.

AIDA::IFitResult * Anaphe::AIDA_Fitter_FML::AIDA_Fitter::fit AIDA::IBaseHistogram &    hist,
AIDA::IFunction &    func
 

Shortcut to fit an IBaseHistogram directly with an IFunction.

Definition at line 223 of file AIDA_Fitter.cpp.

References connect, and fit.

AIDA::IFitResult * Anaphe::AIDA_Fitter_FML::AIDA_Fitter::fit AIDA::IFitData &    fitData,
AIDA::IFunction &    func
 

Fit an IFunction to an IFitData.

Definition at line 96 of file AIDA_Fitter.cpp.

Referenced by fit.

std::string Anaphe::AIDA_Fitter_FML::AIDA_Fitter::fitMethodName  
 

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.

AIDA::IFitParameterSettings & Anaphe::AIDA_Fitter_FML::AIDA_Fitter::fitParameterSettings std::string    name
 

Access to fit parameter settings. FitParameterSettings object belongs to

Definition at line 360 of file AIDA_Fitter.cpp.

References m_fitter, and m_parmap.

const std::vector< std::string > & Anaphe::AIDA_Fitter_FML::AIDA_Fitter::listParameterSettings  
 

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.

AIDA_Fitter & Anaphe::AIDA_Fitter_FML::AIDA_Fitter::operator= const AIDA_Fitter &    [private]
 

Definition at line 87 of file AIDA_Fitter.cpp.

void Anaphe::AIDA_Fitter_FML::AIDA_Fitter::resetConstraints  
 

Reset all the constraints.

Definition at line 390 of file AIDA_Fitter.cpp.

void Anaphe::AIDA_Fitter_FML::AIDA_Fitter::resetParameterSettings  
 

Reset all parameter settings which fitter remebers.

Definition at line 372 of file AIDA_Fitter.cpp.

References m_fitter.

bool Anaphe::AIDA_Fitter_FML::AIDA_Fitter::setConstraint std::string    expr
 

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.

bool Anaphe::AIDA_Fitter_FML::AIDA_Fitter::setEngine std::string    name
 

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.

bool Anaphe::AIDA_Fitter_FML::AIDA_Fitter::setFitMethod std::string    name
 

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.

bool Anaphe::AIDA_Fitter_FML::AIDA_Fitter::setOptions const std::string &    options
 

Definition at line 429 of file AIDA_Fitter.cpp.

References m_fitter.

Referenced by Anaphe::AIDA_Fitter_FML::AIDA_FitFactory::createFitter.

void Anaphe::AIDA_Fitter_FML::AIDA_Fitter::setUseFunctionGradient bool    useGrad
 

Choose between using or not using the analytical derivatives if provided by the function.

Parameters:
useGrad  If true the IFitter will use the analytical derivatives if provided by the IFunction.

Definition at line 416 of file AIDA_Fitter.cpp.

bool Anaphe::AIDA_Fitter_FML::AIDA_Fitter::useFunctionGradient  
 

Check if the IFitter is set to use the analytical derivatives provided by the IFunction.

Returns:
true if the IFitter uses the analytical derivatives.

Definition at line 421 of file AIDA_Fitter.cpp.


Member Data Documentation

std::vector<std::string> Anaphe::AIDA_Fitter_FML::AIDA_Fitter::m_constr [private]
 

Definition at line 205 of file AIDA_Fitter.h.

Referenced by constraints.

Anaphe::FML::Fitter* Anaphe::AIDA_Fitter_FML::AIDA_Fitter::m_fitter [private]
 

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.

FitParMap Anaphe::AIDA_Fitter_FML::AIDA_Fitter::m_parmap [private]
 

Definition at line 204 of file AIDA_Fitter.h.

Referenced by fitParameterSettings, and ~AIDA_Fitter.


The documentation for this class was generated from the following files:
Generated on Tue May 20 14:49:08 2003 for AIDA_Fitter_FML by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002