ROOT 6.18/05 Reference Guide |
class evaluating the log likelihood for binned Poisson likelihood fits it is template to distinguish gradient and non-gradient case
Definition at line 48 of file PoissonLikelihoodFCN.h.
Public Types | |
typedef BasicFCN< DerivFunType, ModelFunType, BinData > | BaseFCN |
typedef BaseObjFunction::BaseFunction | BaseFunction |
typedef ::ROOT::Math::BasicFitMethodFunction< DerivFunType > | BaseObjFunction |
typedef ::ROOT::Math::IParamMultiFunctionTempl< T > | IModelFunction |
typedef ModelFunType::BackendType | T |
typedef BaseObjFunction::Type_t | Type_t |
Public Types inherited from ROOT::Math::BasicFitMethodFunction< DerivFunType > | |
typedef FunctionType::BaseFunc | BaseFunction |
enum | Type_t |
enumeration specyfing the possible fit method types More... | |
Public Member Functions | |
PoissonLikelihoodFCN (const BinData &data, const IModelFunction &func, int weight=0, bool extended=true, const ::ROOT::Fit::ExecutionPolicy &executionPolicy=::ROOT::Fit::ExecutionPolicy::kSerial) | |
Constructor from unbin data set and model function (pdf) managed by the users. More... | |
PoissonLikelihoodFCN (const PoissonLikelihoodFCN &f) | |
Copy constructor. More... | |
PoissonLikelihoodFCN (const std::shared_ptr< BinData > &data, const std::shared_ptr< IModelFunction > &func, int weight=0, bool extended=true, const ::ROOT::Fit::ExecutionPolicy &executionPolicy=::ROOT::Fit::ExecutionPolicy::kSerial) | |
Constructor from unbin data set and model function (pdf) More... | |
virtual | ~PoissonLikelihoodFCN () |
Destructor (no operations) More... | |
virtual BaseFunction * | Clone () const |
clone the function (need to return Base for Windows) More... | |
virtual double | DataElement (const double *x, unsigned int i, double *g) const |
i-th likelihood element and its gradient More... | |
virtual void | Gradient (const double *x, double *g) const |
evaluate gradient More... | |
bool | IsWeighted () const |
virtual unsigned int | NFitPoints () const |
PoissonLikelihoodFCN & | operator= (const PoissonLikelihoodFCN &rhs) |
Assignment operator. More... | |
virtual BaseObjFunction::Type_t | Type () const |
get type of fit method function More... | |
void | UseSumOfWeights () |
void | UseSumOfWeightSquare (bool on=true) |
Public Member Functions inherited from ROOT::Fit::BasicFCN< DerivFunType, ROOT::Math::IParamMultiFunction, BinData > | |
virtual const BinData & | Data () const |
access to const reference to the data More... | |
std::shared_ptr< BinData > | DataPtr () const |
access to data pointer More... | |
virtual const IModelFunction & | ModelFunction () const |
access to const reference to the model function More... | |
std::shared_ptr< IModelFunction > | ModelFunctionPtr () const |
access to function pointer More... | |
Public Member Functions inherited from ROOT::Math::BasicFitMethodFunction< DerivFunType > | |
BasicFitMethodFunction (int dim, int npoint) | |
virtual | ~BasicFitMethodFunction () |
Virtual Destructor (no operations) More... | |
virtual double | DataElement (const double *x, unsigned int i, double *g=0) const=0 |
method returning the data i-th contribution to the fit objective function For example the residual for the least square functions or the pdf element for the likelihood functions. More... | |
virtual unsigned int | NCalls () const |
return the total number of function calls (overrided if needed) More... | |
virtual unsigned int | NDim () const |
Number of dimension (parameters) . More... | |
virtual unsigned int | NPoints () const |
return the number of data points used in evaluating the function More... | |
virtual void | ResetNCalls () |
reset number of function calls More... | |
virtual Type_t | Type () const |
return the type of method, override if needed More... | |
virtual void | UpdateNCalls () const |
update number of calls More... | |
Private Member Functions | |
virtual double | DoDerivative (const double *x, unsigned int icoord) const |
virtual double | DoEval (const double *x) const |
Evaluation of the function (required by interface) More... | |
Private Attributes | |
::ROOT::Fit::ExecutionPolicy | fExecutionPolicy |
std::vector< double > | fGrad |
bool | fIsExtended |
unsigned int | fNEffPoints |
int | fWeight |
Additional Inherited Members | |
Protected Types inherited from ROOT::Fit::BasicFCN< DerivFunType, ROOT::Math::IParamMultiFunction, BinData > | |
typedef BaseObjFunction::BaseFunction | BaseFunction |
typedef ::ROOT::Math::BasicFitMethodFunction< DerivFunType > | BaseObjFunction |
typedef ::ROOT::Math::IParamMultiFunctionTempl< T > | IModelFunction |
typedef ModelFunType::BackendType | T |
Protected Member Functions inherited from ROOT::Fit::BasicFCN< DerivFunType, ROOT::Math::IParamMultiFunction, BinData > | |
BasicFCN (const std::shared_ptr< BinData > &data, const std::shared_ptr< IModelFunction > &func) | |
Constructor from data set and model function. More... | |
virtual | ~BasicFCN () |
Destructor (no operations) More... | |
void | SetData (const std::shared_ptr< BinData > &data) |
Set the data pointer. More... | |
void | SetModelFunction (const std::shared_ptr< IModelFunction > &func) |
Set the function pointer. More... | |
Protected Attributes inherited from ROOT::Fit::BasicFCN< DerivFunType, ROOT::Math::IParamMultiFunction, BinData > | |
std::shared_ptr< BinData > | fData |
std::shared_ptr< IModelFunction > | fFunc |
#include <Fit/PoissonLikelihoodFCN.h>
typedef BasicFCN<DerivFunType,ModelFunType,BinData> ROOT::Fit::PoissonLikelihoodFCN< DerivFunType, ModelFunType >::BaseFCN |
Definition at line 52 of file PoissonLikelihoodFCN.h.
typedef BaseObjFunction::BaseFunction ROOT::Fit::PoissonLikelihoodFCN< DerivFunType, ModelFunType >::BaseFunction |
Definition at line 55 of file PoissonLikelihoodFCN.h.
typedef ::ROOT::Math::BasicFitMethodFunction<DerivFunType> ROOT::Fit::PoissonLikelihoodFCN< DerivFunType, ModelFunType >::BaseObjFunction |
Definition at line 54 of file PoissonLikelihoodFCN.h.
typedef ::ROOT::Math::IParamMultiFunctionTempl<T> ROOT::Fit::PoissonLikelihoodFCN< DerivFunType, ModelFunType >::IModelFunction |
Definition at line 57 of file PoissonLikelihoodFCN.h.
typedef ModelFunType::BackendType ROOT::Fit::PoissonLikelihoodFCN< DerivFunType, ModelFunType >::T |
Definition at line 51 of file PoissonLikelihoodFCN.h.
typedef BaseObjFunction::Type_t ROOT::Fit::PoissonLikelihoodFCN< DerivFunType, ModelFunType >::Type_t |
Definition at line 58 of file PoissonLikelihoodFCN.h.
|
inline |
Constructor from unbin data set and model function (pdf)
Definition at line 63 of file PoissonLikelihoodFCN.h.
|
inline |
Constructor from unbin data set and model function (pdf) managed by the users.
Definition at line 75 of file PoissonLikelihoodFCN.h.
|
inlinevirtual |
Destructor (no operations)
Definition at line 88 of file PoissonLikelihoodFCN.h.
|
inline |
Copy constructor.
Definition at line 93 of file PoissonLikelihoodFCN.h.
|
inlinevirtual |
clone the function (need to return Base for Windows)
Definition at line 117 of file PoissonLikelihoodFCN.h.
|
inlinevirtual |
i-th likelihood element and its gradient
Implements ROOT::Math::BasicFitMethodFunction< DerivFunType >.
Definition at line 123 of file PoissonLikelihoodFCN.h.
|
inlineprivatevirtual |
Definition at line 171 of file PoissonLikelihoodFCN.h.
|
inlineprivatevirtual |
Evaluation of the function (required by interface)
Definition at line 164 of file PoissonLikelihoodFCN.h.
|
inlinevirtual |
evaluate gradient
Definition at line 129 of file PoissonLikelihoodFCN.h.
|
inline |
Definition at line 139 of file PoissonLikelihoodFCN.h.
|
inlinevirtual |
Definition at line 120 of file PoissonLikelihoodFCN.h.
|
inline |
Assignment operator.
Definition at line 105 of file PoissonLikelihoodFCN.h.
|
inlinevirtual |
get type of fit method function
Reimplemented from ROOT::Math::BasicFitMethodFunction< DerivFunType >.
Definition at line 137 of file PoissonLikelihoodFCN.h.
|
inline |
Definition at line 142 of file PoissonLikelihoodFCN.h.
|
inline |
Definition at line 149 of file PoissonLikelihoodFCN.h.
|
private |
Definition at line 186 of file PoissonLikelihoodFCN.h.
|
mutableprivate |
Definition at line 184 of file PoissonLikelihoodFCN.h.
|
private |
Definition at line 179 of file PoissonLikelihoodFCN.h.
|
mutableprivate |
Definition at line 182 of file PoissonLikelihoodFCN.h.
|
private |
Definition at line 180 of file PoissonLikelihoodFCN.h.