![]() |
ROOT 6.07/09 Reference Guide |
Chi2FCN class for binnned fits using the least square methods.
Public Types | |
typedef BasicFCN< FunType, BinData > | BaseFCN |
typedef BaseObjFunction::BaseFunction | BaseFunction |
typedef ::ROOT::Math::BasicFitMethodFunction< FunType > | BaseObjFunction |
typedef ::ROOT::Math::IParamMultiFunction | IModelFunction |
typedef BaseObjFunction::Type_t | Type_t |
![]() | |
typedef FunType::BaseFunc | BaseFunction |
enum | Type_t |
enumeration specyfing the possible fit method types More... | |
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... | |
Chi2FCN (const Chi2FCN &f) | |
Copy constructor. 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... | |
![]() | |
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... | |
![]() | |
BasicFitMethodFunction (int dim, int npoint) | |
virtual | ~BasicFitMethodFunction () |
Virtual Destructor (no operations) 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 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... | |
![]() | |
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 | |
std::vector< double > | fGrad |
unsigned int | fNEffPoints |
Additional Inherited Members | |
![]() | |
typedef BaseObjFunction::BaseFunction | BaseFunction |
typedef ::ROOT::Math::BasicFitMethodFunction< FunType > | BaseObjFunction |
typedef ::ROOT::Math::IParamMultiFunction | IModelFunction |
![]() | |
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 |
|
inline |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
i-th chi-square residual
Implements ROOT::Math::BasicFitMethodFunction< FunType >.
|
inlineprivatevirtual |
|
inlineprivatevirtual |
|
inlinevirtual |
|
inline |
|
inlineprotectedvirtual |
|
inlinevirtual |
get type of fit method function
Reimplemented from ROOT::Math::BasicFitMethodFunction< FunType >.
|
mutableprivate |
|
mutableprivate |