Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TGo4FitAmplEstimation Class Reference

Amplitude estimation action In additional to general minimization routine very useful amplitude estimation algorithm can be used. More...

#include <TGo4FitAmplEstimation.h>

Inheritance diagram for TGo4FitAmplEstimation:

TGo4FitterAction TGo4FitNamed List of all members.

Public Member Functions

 TGo4FitAmplEstimation ()
 Default constructor.
 TGo4FitAmplEstimation (const char *Name, Int_t NumIters=1)
 Creates TGo4FitAmplEstimation action with given name.
virtual ~TGo4FitAmplEstimation ()
 Destroys TGo4FitAmplEstimation object.
Int_t GetNumIterations ()
 Returns number of iterations.
void SetNumIterations (Int_t iNumIters)
 Sets number of iterations.
virtual Bool_t NeedBuffers () const
virtual void DoAction (TGo4FitterAbstract *Fitter)
 Perform amplitude estimations.
virtual void Print (Option_t *option) const
 Print information on standard output.

Private Member Functions

Double_t PointWeight (Int_t niter, Int_t FFtype, Double_t value, Double_t modelvalue, Double_t standdev)
Bool_t CalculateWithBuffers (TGo4Fitter *fitter)
Bool_t CalculateWithIterators (TGo4Fitter *fitter)

Private Attributes

Int_t fiNumIters
 Number of iterations, used for amplitude estimation.

Detailed Description

Amplitude estimation action In additional to general minimization routine very useful amplitude estimation algorithm can be used.

If rest of models parameters have good initial estimation, the amplitude parameter can be defined by solving of system of linear equations, as described in theoretical preface part of tutorial. This algorithm is provided by TGo4FitAmplEstimation class. This action can be added by AddAmplEstimation() routine of fitter. Typically, this action should be added before minimization routine.

Definition at line 27 of file TGo4FitAmplEstimation.h.


Constructor & Destructor Documentation

TGo4FitAmplEstimation::TGo4FitAmplEstimation  ) 
 

Default constructor.

Definition at line 31 of file TGo4FitAmplEstimation.cxx.

TGo4FitAmplEstimation::TGo4FitAmplEstimation const char *  Name,
Int_t  NumIters = 1
 

Creates TGo4FitAmplEstimation action with given name.

Optinally, default number of iterations can be sets up (default 1).

Definition at line 34 of file TGo4FitAmplEstimation.cxx.

TGo4FitAmplEstimation::~TGo4FitAmplEstimation  )  [virtual]
 

Destroys TGo4FitAmplEstimation object.

Definition at line 38 of file TGo4FitAmplEstimation.cxx.


Member Function Documentation

Int_t TGo4FitAmplEstimation::GetNumIterations  )  [inline]
 

Returns number of iterations.

Definition at line 49 of file TGo4FitAmplEstimation.h.

References fiNumIters.

void TGo4FitAmplEstimation::SetNumIterations Int_t  iNumIters  )  [inline]
 

Sets number of iterations.

Definition at line 54 of file TGo4FitAmplEstimation.h.

References fiNumIters.

virtual Bool_t TGo4FitAmplEstimation::NeedBuffers  )  const [inline, virtual]
 

Reimplemented from TGo4FitterAction.

Definition at line 56 of file TGo4FitAmplEstimation.h.

void TGo4FitAmplEstimation::DoAction TGo4FitterAbstract Fitter  )  [virtual]
 

Perform amplitude estimations.

See Go4Fit tutorial to more details.

Implements TGo4FitterAction.

Definition at line 41 of file TGo4FitAmplEstimation.cxx.

References CalculateWithBuffers(), and CalculateWithIterators().

Referenced by TGo4Fitter::EstimateAmplitudes().

void TGo4FitAmplEstimation::Print Option_t *  option  )  const [virtual]
 

Print information on standard output.

Reimplemented from TGo4FitNamed.

Definition at line 341 of file TGo4FitAmplEstimation.cxx.

References fiNumIters, and TGo4FitNamed::Print().

Double_t TGo4FitAmplEstimation::PointWeight Int_t  niter,
Int_t  FFtype,
Double_t  value,
Double_t  modelvalue,
Double_t  standdev
[private]
 

Definition at line 48 of file TGo4FitAmplEstimation.cxx.

References TGo4Fitter::ff_chi_gamma, TGo4Fitter::ff_chi_Neyman, TGo4Fitter::ff_chi_Pearson, TGo4Fitter::ff_chi_square, TGo4Fitter::ff_least_squares, TGo4Fitter::ff_ML_Poisson, and TGo4Fitter::ff_user.

Referenced by CalculateWithBuffers(), and CalculateWithIterators().

Bool_t TGo4FitAmplEstimation::CalculateWithBuffers TGo4Fitter fitter  )  [private]
 

Definition at line 64 of file TGo4FitAmplEstimation.cxx.

References TGo4FitModel::AssignmentName(), TGo4Fitter::DataBuffersAllocated(), TGo4Fitter::ff_chi_Pearson, TGo4Fitter::ff_ML_Poisson, TGo4Fitter::FindData(), fiNumIters, TGo4FitComponent::GetAmplPar(), TGo4Fitter::GetData(), TGo4Fitter::GetDataBinsDevs(), TGo4Fitter::GetDataBinsResult(), TGo4Fitter::GetDataBinsSize(), TGo4Fitter::GetDataBinsValues(), TGo4Fitter::GetDataName(), TGo4Fitter::GetFitFunctionType(), TGo4Fitter::GetModel(), TGo4Fitter::GetModelBinsValues(), TGo4Fitter::GetNumData(), TGo4Fitter::GetNumModel(), TGo4FitterAbstract::IsInitialized(), TGo4Fitter::ModelBuffersAllocated(), PointWeight(), TGo4Fitter::RebuildAll(), TGo4FitComponent::SetAmplError(), and TGo4FitComponent::SetAmplValue().

Referenced by DoAction().

Bool_t TGo4FitAmplEstimation::CalculateWithIterators TGo4Fitter fitter  )  [private]
 

Definition at line 219 of file TGo4FitAmplEstimation.cxx.

References TGo4FitModel::AssignmentName(), TGo4FitModel::BeforeEval(), TGo4Fitter::ff_chi_Pearson, TGo4Fitter::ff_ML_Poisson, fiNumIters, TGo4FitComponent::GetAmplPar(), TGo4FitComponent::GetAmplValue(), TGo4FitModel::GetRatioValueFor(), TGo4FitDataIter::IndexesSize(), TGo4FitModel::IsAssignTo(), TGo4FitData::MakeIter(), TGo4FitDataIter::Next(), PointWeight(), TGo4FitDataIter::Reset(), TGo4FitComponent::SetAmplError(), TGo4FitComponent::SetAmplValue(), TGo4FitDataIter::StandardDeviation(), and TGo4FitDataIter::Value().

Referenced by DoAction().


Member Data Documentation

Int_t TGo4FitAmplEstimation::fiNumIters [private]
 

Number of iterations, used for amplitude estimation.

Definition at line 76 of file TGo4FitAmplEstimation.h.

Referenced by CalculateWithBuffers(), CalculateWithIterators(), GetNumIterations(), Print(), and SetNumIterations().


The documentation for this class was generated from the following files:
Generated on Fri Nov 28 13:00:54 2008 for Go4-v3.04-1 by  doxygen 1.4.2