Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Minuit2::FumiliStandardMaximumLikelihoodFCN Class Reference

Class implementing the Elements member function for the standard maximum likelihood method.

Author
Andras Zsenei and Lorenzo Moneta, Creation date: 4 Sep 2004
See also
FumiliMaximumLikelihoodFCN

Definition at line 34 of file FumiliStandardMaximumLikelihoodFCN.h.

Public Member Functions

 FumiliStandardMaximumLikelihoodFCN (const ParametricFunction &modelFCN, const std::vector< double > &pos)
 Constructor which initializes the measurement points for the one dimensional model function.
 
 FumiliStandardMaximumLikelihoodFCN (const ParametricFunction &modelFCN, const std::vector< std::vector< double > > &pos)
 Constructor which initializes the measurement points for the multi dimensional model function.
 
 ~FumiliStandardMaximumLikelihoodFCN ()
 
std::vector< doubleElements (const std::vector< double > &par) const
 Evaluates the model function for the different measurement points and the Parameter values supplied.
 
virtual void EvaluateAll (const std::vector< double > &par)
 Evaluate function Value, Gradient and Hessian using Fumili approximation, for values of parameters p The resul is cached inside and is return from the FumiliFCNBase::Value , FumiliFCNBase::Gradient and FumiliFCNBase::Hessian methods.
 
virtual const std::vector< double > & GetMeasurement (int Index) const
 Accessor to the position of the measurement (x coordinate).
 
virtual int GetNumberOfMeasurements () const
 Accessor to the number of measurements used for calculating the maximum likelihood.
 
- Public Member Functions inherited from ROOT::Minuit2::FumiliMaximumLikelihoodFCN
 FumiliMaximumLikelihoodFCN ()
 
virtual ~FumiliMaximumLikelihoodFCN ()
 
const ParametricFunctionModelFunction () const
 Returns the model function used for the data.
 
double operator() (const std::vector< double > &par) const
 Calculates the function for the maximum likelihood method.
 
void SetModelFunction (const ParametricFunction &modelFCN)
 Sets the model function for the data (for example gaussian+linear for a peak)
 
virtual double Up () const
 !!!!!!!!!!!! to be commented
 
- Public Member Functions inherited from ROOT::Minuit2::FumiliFCNBase
 FumiliFCNBase ()
 Default Constructor.
 
 FumiliFCNBase (unsigned int npar)
 Constructor which initializes the class with the function provided by the user for modeling the data.
 
virtual ~FumiliFCNBase ()
 
virtual unsigned int Dimension ()
 return number of function variable (parameters) , i.e.
 
virtual const std::vector< double > & Gradient () const
 Return cached Value of function Gradient estimated previously using the FumiliFCNBase::EvaluateAll method.
 
virtual double Hessian (unsigned int row, unsigned int col) const
 Return Value of the i-th j-th element of the Hessian matrix estimated previously using the FumiliFCNBase::EvaluateAll method.
 
virtual double Value () const
 Return cached Value of objective function estimated previously using the FumiliFCNBase::EvaluateAll method.
 
- Public Member Functions inherited from ROOT::Minuit2::FCNBase
virtual ~FCNBase ()
 
virtual double ErrorDef () const
 Error definition of the function.
 
virtual void SetErrorDef (double)
 add interface to set dynamically a new error definition Re-implement this function if needed.
 
- Public Member Functions inherited from ROOT::Minuit2::GenericFunction
virtual ~GenericFunction ()
 

Private Attributes

std::vector< std::vector< double > > fPositions
 

Additional Inherited Members

- Protected Member Functions inherited from ROOT::Minuit2::FumiliFCNBase
std::vector< double > & Gradient ()
 
std::vector< double > & Hessian ()
 
virtual void InitAndReset (unsigned int npar)
 initialize and reset values of gradien and Hessian
 
void SetFCNValue (double value)
 

#include <Minuit2/FumiliStandardMaximumLikelihoodFCN.h>

Inheritance diagram for ROOT::Minuit2::FumiliStandardMaximumLikelihoodFCN:
[legend]

Constructor & Destructor Documentation

◆ FumiliStandardMaximumLikelihoodFCN() [1/2]

ROOT::Minuit2::FumiliStandardMaximumLikelihoodFCN::FumiliStandardMaximumLikelihoodFCN ( const ParametricFunction modelFCN,
const std::vector< double > &  pos 
)
inline

Constructor which initializes the measurement points for the one dimensional model function.

Parameters
modelFCNthe model function used for describing the data.
posvector containing the x values corresponding to the measurements

Definition at line 48 of file FumiliStandardMaximumLikelihoodFCN.h.

◆ FumiliStandardMaximumLikelihoodFCN() [2/2]

ROOT::Minuit2::FumiliStandardMaximumLikelihoodFCN::FumiliStandardMaximumLikelihoodFCN ( const ParametricFunction modelFCN,
const std::vector< std::vector< double > > &  pos 
)
inline

Constructor which initializes the measurement points for the multi dimensional model function.

Parameters
modelFCNthe model function used for describing the data.
posvector containing the x values corresponding to the measurements

Definition at line 71 of file FumiliStandardMaximumLikelihoodFCN.h.

◆ ~FumiliStandardMaximumLikelihoodFCN()

ROOT::Minuit2::FumiliStandardMaximumLikelihoodFCN::~FumiliStandardMaximumLikelihoodFCN ( )
inline

Definition at line 77 of file FumiliStandardMaximumLikelihoodFCN.h.

Member Function Documentation

◆ Elements()

std::vector< double > ROOT::Minuit2::FumiliStandardMaximumLikelihoodFCN::Elements ( const std::vector< double > &  par) const
virtual

Evaluates the model function for the different measurement points and the Parameter values supplied.

Parameters
parvector of Parameter values to feed to the model function.
Returns
A vector containing the model function evaluated for each measurement point.

Implements ROOT::Minuit2::FumiliMaximumLikelihoodFCN.

Definition at line 20 of file FumiliStandardMaximumLikelihoodFCN.cxx.

◆ EvaluateAll()

void ROOT::Minuit2::FumiliStandardMaximumLikelihoodFCN::EvaluateAll ( const std::vector< double > &  par)
virtual

Evaluate function Value, Gradient and Hessian using Fumili approximation, for values of parameters p The resul is cached inside and is return from the FumiliFCNBase::Value , FumiliFCNBase::Gradient and FumiliFCNBase::Hessian methods.

Parameters
parvector of parameters

Implements ROOT::Minuit2::FumiliFCNBase.

Definition at line 57 of file FumiliStandardMaximumLikelihoodFCN.cxx.

◆ GetMeasurement()

const std::vector< double > & ROOT::Minuit2::FumiliStandardMaximumLikelihoodFCN::GetMeasurement ( int  Index) const
virtual

Accessor to the position of the measurement (x coordinate).

Parameters
IndexIndex of the measuerement the position of which to return.
Returns
the position of the measurement.

Implements ROOT::Minuit2::FumiliMaximumLikelihoodFCN.

Definition at line 45 of file FumiliStandardMaximumLikelihoodFCN.cxx.

◆ GetNumberOfMeasurements()

int ROOT::Minuit2::FumiliStandardMaximumLikelihoodFCN::GetNumberOfMeasurements ( ) const
virtual

Accessor to the number of measurements used for calculating the maximum likelihood.

Returns
the number of measurements.

Implements ROOT::Minuit2::FumiliMaximumLikelihoodFCN.

Definition at line 51 of file FumiliStandardMaximumLikelihoodFCN.cxx.

Member Data Documentation

◆ fPositions

std::vector<std::vector<double> > ROOT::Minuit2::FumiliStandardMaximumLikelihoodFCN::fPositions
private

Definition at line 129 of file FumiliStandardMaximumLikelihoodFCN.h.

Libraries for ROOT::Minuit2::FumiliStandardMaximumLikelihoodFCN:

The documentation for this class was generated from the following files: