|
ROOT 6.18/05 Reference Guide |
Chi2FCN class for binnned 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 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 | |
| Chi2FCN (const BinData &data, const IModelFunction &func, const ::ROOT::Fit::ExecutionPolicy &executionPolicy=::ROOT::Fit::ExecutionPolicy::kSerial) | |
| Same Constructor from data set (binned ) and model function but now managed by the user we clone the function but not the data. More... | |
| Chi2FCN (const Chi2FCN &f) | |
| Copy constructor. More... | |
| Chi2FCN (const std::shared_ptr< BinData > &data, const std::shared_ptr< IModelFunction > &func, const ::ROOT::Fit::ExecutionPolicy &executionPolicy=::ROOT::Fit::ExecutionPolicy::kSerial) | |
| Constructor from data set (binned ) and model function. More... | |
| virtual | ~Chi2FCN () |
| Destructor (no operations) More... | |
| virtual BaseFunction * | Clone () const |
| virtual double | DataElement (const double *x, unsigned int i, double *g) const |
| i-th chi-square residual More... | |
| virtual void | Gradient (const double *x, double *g) const |
| Chi2FCN & | operator= (const Chi2FCN &rhs) |
| Assignment operator. More... | |
| virtual BaseObjFunction::Type_t | Type () const |
| get type of fit method function More... | |
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... | |
Protected Member Functions | |
| virtual void | SetNFitPoints (unsigned int n) const |
| set number of fit points (need to be called in const methods, make it const) More... | |
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... | |
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 |
| unsigned int | fNEffPoints |
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 Attributes inherited from ROOT::Fit::BasicFCN< DerivFunType, ROOT::Math::IParamMultiFunction, BinData > | |
| std::shared_ptr< BinData > | fData |
| std::shared_ptr< IModelFunction > | fFunc |
#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 |
| 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 |
|
inlinevirtual |
|
inlinevirtual |
i-th chi-square residual
Implements ROOT::Math::BasicFitMethodFunction< DerivFunType >.
|
inlineprivatevirtual |
|
inlineprivatevirtual |
|
inlinevirtual |
|
inline |
|
inlineprotectedvirtual |
|
inlinevirtual |
get type of fit method function
Reimplemented from ROOT::Math::BasicFitMethodFunction< DerivFunType >.
|
private |
|
mutableprivate |
|
mutableprivate |