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 Types inherited from ROOT::Math::BasicFitMethodFunction< DerivFunType > | |
| typedef FunctionType::BaseFunc | BaseFunction | 
| enum | Type_t | 
| enumeration specifying the possible fit method types  More... | |
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)   | |
| virtual BaseFunction * | Clone () const | 
| virtual double | DataElement (const double *x, unsigned int i, double *g, double *h=nullptr, bool fullHessian=false) const | 
| i-th chi-square residual   | |
| virtual void | Gradient (const double *x, double *g) const | 
| Chi2FCN & | operator= (const Chi2FCN &rhs) | 
| Assignment operator.   | |
| virtual BaseObjFunction::Type_t | Type () const | 
| get type of fit method function   | |
  Public Member Functions inherited from ROOT::Fit::BasicFCN< DerivFunType, ModelFunType, DataType > | |
| virtual const DataType & | Data () const | 
| access to const reference to the data   | |
| std::shared_ptr< DataType > | DataPtr () const | 
| access to data pointer   | |
| virtual bool | HasHessian () const | 
| flag to indicate if can compute Hessian   | |
| virtual const IModelFunction & | ModelFunction () const | 
| access to const reference to the model function   | |
| std::shared_ptr< IModelFunction > | ModelFunctionPtr () const | 
| access to function pointer   | |
  Public Member Functions inherited from ROOT::Math::BasicFitMethodFunction< DerivFunType > | |
| BasicFitMethodFunction (int dim, int npoint) | |
| ~BasicFitMethodFunction () override | |
| Virtual Destructor (no operations)   | |
| virtual bool | G2 (const double *, double *) const | 
| Computes the Second derivatives.   | |
| virtual bool | Hessian (const double *x, double *hess) const | 
| Computes the full Hessian.   | |
| bool | IsAGradFCN () | 
| 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   | |
| virtual void | ResetNCalls () | 
| reset number of function calls   | |
| virtual void | UpdateNCalls () const | 
| update number of calls   | |
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)   | |
  Protected Member Functions inherited from ROOT::Fit::BasicFCN< DerivFunType, ModelFunType, DataType > | |
| BasicFCN (const std::shared_ptr< DataType > &data, const std::shared_ptr< IModelFunction > &func) | |
| Constructor from data set and model function.   | |
| virtual | ~BasicFCN () | 
| Destructor (no operations)   | |
| void | SetData (const std::shared_ptr< DataType > &data) | 
| Set the data pointer.   | |
| void | SetModelFunction (const std::shared_ptr< IModelFunction > &func) | 
| Set the function pointer.   | |
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)   | |
Private Attributes | |
| ::ROOT::EExecutionPolicy | fExecutionPolicy | 
| std::vector< double > | fGrad | 
| for derivatives   | |
| unsigned int | fNEffPoints | 
| number of effective points used in the fit   | |
Additional Inherited Members | |
  Static Public Member Functions inherited from ROOT::Math::BasicFitMethodFunction< DerivFunType > | |
| static bool | IsAGradFCN () | 
| Static function to indicate if a function is supporting gradient.   | |
  Protected Types inherited from ROOT::Fit::BasicFCN< DerivFunType, ModelFunType, DataType > | |
| typedef BaseObjFunction::BaseFunction | BaseFunction | 
| typedef ::ROOT::Math::BasicFitMethodFunction< DerivFunType > | BaseObjFunction | 
| typedef ::ROOT::Math::IParametricGradFunctionMultiDimTempl< T > | IGradModelFunction | 
| typedef ::ROOT::Math::IParamMultiFunctionTempl< T > | IModelFunction | 
| typedef ModelFunType::BackendType | T | 
  Protected Attributes inherited from ROOT::Fit::BasicFCN< DerivFunType, ModelFunType, DataType > | |
| std::shared_ptr< DataType > | 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 |