ROOT
6.07/01
Reference Guide
|
Chi2FCN class for binnned fits using the least square methods.
Public Types | |
typedef BasicFCN< FunType, BinData > | BaseFCN |
typedef ::ROOT::Math::BasicFitMethodFunction < FunType > | BaseObjFunction |
typedef BaseObjFunction::BaseFunction | BaseFunction |
typedef ::ROOT::Math::IParamMultiFunction | IModelFunction |
typedef BaseObjFunction::Type_t | Type_t |
Public Types inherited from ROOT::Math::BasicFitMethodFunction< FunType > | |
enum | Type_t |
enumeration specyfing the possible fit method types More... | |
typedef FunType::BaseFunc | BaseFunction |
Public Member Functions | |
Chi2FCN (const std::shared_ptr< BinData > &data, const std::shared_ptr< IModelFunction > &func) | |
Constructor from data set (binned ) and model function. More... | |
Chi2FCN (const BinData &data, const IModelFunction &func) | |
Same Constructor from data set (binned ) and model function but now managed by the user we clone the function but not the data. More... | |
virtual | ~Chi2FCN () |
Destructor (no operations) More... | |
Chi2FCN (const Chi2FCN &f) | |
Copy constructor. More... | |
Chi2FCN & | operator= (const Chi2FCN &rhs) |
Assignment operator. 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 |
virtual BaseObjFunction::Type_t | Type () const |
get type of fit method function More... | |
Public Member Functions inherited from ROOT::Fit::BasicFCN< FunType, 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< FunType > | |
BasicFitMethodFunction (int dim, int npoint) | |
virtual | ~BasicFitMethodFunction () |
Virtual Destructor (no operations) 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 unsigned int | NCalls () const |
return the total number of function calls (overrided if needed) More... | |
virtual void | UpdateNCalls () const |
update number of calls More... | |
virtual void | ResetNCalls () |
reset number of function 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< FunType, 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 | DoEval (const double *x) const |
Evaluation of the function (required by interface) More... | |
virtual double | DoDerivative (const double *x, unsigned int icoord) const |
Private Attributes | |
unsigned int | fNEffPoints |
std::vector< double > | fGrad |
Additional Inherited Members | |
Protected Types inherited from ROOT::Fit::BasicFCN< FunType, BinData > | |
typedef ::ROOT::Math::BasicFitMethodFunction < FunType > | BaseObjFunction |
typedef BaseObjFunction::BaseFunction | BaseFunction |
typedef ::ROOT::Math::IParamMultiFunction | IModelFunction |
Protected Attributes inherited from ROOT::Fit::BasicFCN< FunType, BinData > | |
std::shared_ptr< BinData > | fData |
std::shared_ptr< IModelFunction > | fFunc |
#include <Fit/Chi2FCN.h>
typedef BasicFCN<FunType,BinData> ROOT::Fit::Chi2FCN< FunType >::BaseFCN |
typedef BaseObjFunction::BaseFunction ROOT::Fit::Chi2FCN< FunType >::BaseFunction |
typedef ::ROOT::Math::BasicFitMethodFunction<FunType> ROOT::Fit::Chi2FCN< FunType >::BaseObjFunction |
typedef ::ROOT::Math::IParamMultiFunction ROOT::Fit::Chi2FCN< FunType >::IModelFunction |
typedef BaseObjFunction::Type_t ROOT::Fit::Chi2FCN< FunType >::Type_t |
|
inline |
Constructor from data set (binned ) and model function.
Definition at line 84 of file Chi2FCN.h.
Referenced by ROOT::Fit::Chi2FCN< FunType >::Clone().
|
inline |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
i-th chi-square residual
Implements ROOT::Math::BasicFitMethodFunction< FunType >.
|
inlineprivatevirtual |
|
inlineprivatevirtual |
|
inlinevirtual |
Definition at line 142 of file Chi2FCN.h.
Referenced by ROOT::Fit::Chi2FCN< FunType >::DoDerivative().
|
inline |
|
inlineprotectedvirtual |
|
inlinevirtual |
get type of fit method function
Reimplemented from ROOT::Math::BasicFitMethodFunction< FunType >.
Definition at line 148 of file Chi2FCN.h.
Referenced by ROOT::Fit::Fitter::DoLeastSquareFit().
|
mutableprivate |
Definition at line 183 of file Chi2FCN.h.
Referenced by ROOT::Fit::Chi2FCN< FunType >::DoDerivative(), and ROOT::Fit::Chi2FCN< FunType >::operator=().
|
mutableprivate |
Definition at line 181 of file Chi2FCN.h.
Referenced by ROOT::Fit::Chi2FCN< FunType >::DoEval(), ROOT::Fit::Chi2FCN< FunType >::Gradient(), ROOT::Fit::Chi2FCN< FunType >::operator=(), and ROOT::Fit::Chi2FCN< FunType >::SetNFitPoints().