Chi2FCN class for binned fits using the least square methods.
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 Member Functions | |
| Chi2FCN (const BinData &data, const IModelFunction &func, const ::ROOT::EExecutionPolicy &executionPolicy=::ROOT::EExecutionPolicy::kSequential) | |
| Same Constructor from data set (binned ) and model function cloning the function and the data. | |
| Chi2FCN (const Chi2FCN &f) | |
| Copy constructor. | |
| Chi2FCN (const std::shared_ptr< BinData > &data, const std::shared_ptr< IModelFunction > &func, const ::ROOT::EExecutionPolicy &executionPolicy=::ROOT::EExecutionPolicy::kSequential) | |
| Constructor from data set (binned ) and model function. | |
| virtual | ~Chi2FCN () |
| Destructor (no operations). | |
| BaseFunction * | Clone () const override |
| virtual const BinData & | Data () const |
| access to const reference to the data | |
| double | DataElement (const double *x, unsigned int i, double *g, double *h=nullptr, bool fullHessian=false) const override |
| i-th chi-square residual | |
| std::shared_ptr< BinData > | DataPtr () const |
| access to data pointer | |
| virtual bool | G2 (const double *, double *) const |
| Computes the Second derivatives. | |
| void | Gradient (const double *x, double *g) const override |
| bool | HasHessian () const override |
| flag to indicate if can compute Hessian | |
| virtual bool | Hessian (const double *x, double *hess) const |
| Computes the full Hessian. | |
| bool | IsAGradFCN () |
| virtual const IModelFunction & | ModelFunction () const |
| access to const reference to the model function | |
| std::shared_ptr< IModelFunction > | ModelFunctionPtr () const |
| access to function pointer | |
| virtual unsigned int | NCalls () const |
| return the total number of function calls (override if needed) | |
| unsigned int | NDim () const override |
| Number of dimension (parameters) . | |
| virtual unsigned int | NPoints () const |
| return the number of data points used in evaluating the function | |
| Chi2FCN & | operator= (const Chi2FCN &rhs) |
| Assignment operator. | |
| virtual void | ResetNCalls () |
| reset number of function calls | |
| BaseObjFunction::Type_t | Type () const override |
| get type of fit method function | |
| virtual void | UpdateNCalls () const |
| update number of calls | |
Static Public Member Functions | |
| static bool | IsAGradFCN () |
| Static function to indicate if a function is supporting gradient. | |
Protected Types | |
| typedef ::ROOT::Math::IParametricGradFunctionMultiDimTempl< T > | IGradModelFunction |
Protected Member Functions | |
| void | SetData (const std::shared_ptr< BinData > &data) |
| Set the data pointer. | |
| void | SetModelFunction (const std::shared_ptr< IModelFunction > &func) |
| Set the function pointer. | |
| virtual void | SetNFitPoints (unsigned int n) const |
| set number of fit points (need to be called in const methods, make it const) | |
Protected Attributes | |
| std::shared_ptr< BinData > | fData |
| std::shared_ptr< IModelFunction > | fFunc |
Private Member Functions | |
| double | DoDerivative (const double *x, unsigned int icoord) const override |
| double | DoEval (const double *x) const override |
| Evaluation of the function (required by interface). | |
Private Attributes | |
| ::ROOT::EExecutionPolicy | fExecutionPolicy |
| std::vector< double > | fGrad |
| for derivatives | |
| unsigned int | fNCalls |
| unsigned int | fNDim |
| unsigned int | fNEffPoints |
| number of effective points used in the fit | |
| unsigned int | fNPoints |
#include <Fit/Chi2FCN.h>
| typedef BasicFCN<DerivFunType, ModelFunType, BinData> ROOT::Fit::Chi2FCN< DerivFunType, ModelFunType >::BaseFCN |
| typedef BaseObjFunction::BaseFunction ROOT::Fit::Chi2FCN< DerivFunType, ModelFunType >::BaseFunction |
| typedef ::ROOT::Math::BasicFitMethodFunction<DerivFunType> ROOT::Fit::Chi2FCN< DerivFunType, ModelFunType >::BaseObjFunction |
|
protectedinherited |
Definition at line 50 of file BasicFCN.h.
| typedef ::ROOT::Math::IParamMultiFunctionTempl<T> ROOT::Fit::Chi2FCN< DerivFunType, ModelFunType >::IModelFunction |
| typedef ModelFunType::BackendType ROOT::Fit::Chi2FCN< DerivFunType, ModelFunType >::T |
| typedef BaseObjFunction::Type_t ROOT::Fit::Chi2FCN< DerivFunType, ModelFunType >::Type_t |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inlineoverride |
|
inlinevirtualinherited |
access to const reference to the data
Definition at line 72 of file BasicFCN.h.
|
inlineoverridevirtual |
i-th chi-square residual
Implements ROOT::Math::BasicFitMethodFunction< DerivFunType >.
|
inlineinherited |
access to data pointer
Definition at line 75 of file BasicFCN.h.
|
inlineoverrideprivate |
|
inlineoverrideprivate |
|
inlinevirtualinherited |
Computes the Second derivatives.
Return false if this is not supported
Definition at line 104 of file FitMethodFunction.h.
|
inlineoverride |
|
inlineoverridevirtualinherited |
flag to indicate if can compute Hessian
Reimplemented from ROOT::Math::BasicFitMethodFunction< DerivFunType >.
Definition at line 84 of file BasicFCN.h.
|
inlinevirtualinherited |
Computes the full Hessian.
Return false if Hessian is not supported
Definition at line 81 of file FitMethodFunction.h.
|
inlineinherited |
Definition at line 149 of file FitMethodFunction.h.
|
inlinestaticinherited |
Static function to indicate if a function is supporting gradient.
Definition at line 135 of file FitMethodFunction.h.
|
inlinevirtualinherited |
access to const reference to the model function
Definition at line 78 of file BasicFCN.h.
|
inlineinherited |
access to function pointer
Definition at line 81 of file BasicFCN.h.
|
inlinevirtualinherited |
return the total number of function calls (override if needed)
Definition at line 119 of file FitMethodFunction.h.
|
inlineoverrideinherited |
Number of dimension (parameters) .
From IGenMultiFunction interface
Definition at line 63 of file FitMethodFunction.h.
|
inlinevirtualinherited |
return the number of data points used in evaluating the function
Definition at line 109 of file FitMethodFunction.h.
|
inline |
|
inlinevirtualinherited |
reset number of function calls
Definition at line 129 of file FitMethodFunction.h.
|
inlineprotectedinherited |
Set the data pointer.
Definition at line 98 of file BasicFCN.h.
|
inlineprotectedinherited |
Set the function pointer.
Definition at line 101 of file BasicFCN.h.
|
inlineprotectedvirtual |
|
inlineoverridevirtual |
get type of fit method function
Reimplemented from ROOT::Math::BasicFitMethodFunction< DerivFunType >.
|
inlinevirtualinherited |
update number of calls
Definition at line 124 of file FitMethodFunction.h.
|
protectedinherited |
Definition at line 104 of file BasicFCN.h.
|
private |
|
protectedinherited |
Definition at line 105 of file BasicFCN.h.
|
mutableprivate |
|
mutableprivateinherited |
Definition at line 143 of file FitMethodFunction.h.
|
privateinherited |
Definition at line 141 of file FitMethodFunction.h.
|
mutableprivate |
|
privateinherited |
Definition at line 142 of file FitMethodFunction.h.