Logo ROOT  
Reference Guide
FitUtil.h File Reference
#include "Math/IParamFunctionfwd.h"
#include "Math/IParamFunction.h"
#include "ROOT/TThreadExecutor.hxx"
#include "ROOT/TSequentialExecutor.hxx"
#include "Fit/BinData.h"
#include "Fit/UnBinData.h"
#include "ROOT/EExecutionPolicy.hxx"
#include "Math/Integrator.h"
#include "Math/IntegratorMultiDim.h"
#include "TError.h"
#include <vector>
Include dependency graph for FitUtil.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  ROOT::Fit::FitUtil::Evaluate< T >
 
class  ROOT::Fit::FitUtil::IntegralEvaluator< ParamFunc >
 
class  ROOT::Fit::FitUtil::LikelihoodAux< T >
 
class  ROOT::Fit::FitUtil::LikelihoodAux< double >
 

Namespaces

namespace  ROOT
 This file contains a specialised ROOT message handler to test for diagnostic in unit tests.
 
namespace  ROOT::Fit
 Namespace for the fitting classes.
 
namespace  ROOT::Fit::FitUtil
 namespace defining utility free functions using in Fit for evaluating the various fit method functions (chi2, likelihood, etc..) given the data and the model function
 

Macros

#define USE_PARAMCACHE
 

Typedefs

typedef ROOT::Math::IParamMultiGradFunction ROOT::Fit::FitUtil::IGradModelFunction
 
template<class T >
using ROOT::Fit::FitUtil::IGradModelFunctionTempl = ROOT::Math::IParamMultiGradFunctionTempl< T >
 
typedef ROOT::Math::IParamMultiFunction ROOT::Fit::FitUtil::IModelFunction
 
template<class T >
using ROOT::Fit::FitUtil::IModelFunctionTempl = ROOT::Math::IParamMultiFunctionTempl< T >
 

Functions

double ROOT::Fit::FitUtil::EvaluateChi2 (const IModelFunction &func, const BinData &data, const double *p, unsigned int &nPoints, ::ROOT::EExecutionPolicy executionPolicy, unsigned nChunks=0)
 Chi2 Functions. More...
 
double ROOT::Fit::FitUtil::EvaluateChi2Effective (const IModelFunction &func, const BinData &data, const double *x, unsigned int &nPoints)
 evaluate the effective Chi2 given a model function and the data at the point x. More...
 
void ROOT::Fit::FitUtil::EvaluateChi2Gradient (const IModelFunction &func, const BinData &data, const double *p, double *grad, unsigned int &nPoints, ::ROOT::EExecutionPolicy executionPolicy=::ROOT::EExecutionPolicy::kSequential, unsigned nChunks=0)
 evaluate the Chi2 gradient given a model function and the data at the point p. More...
 
double ROOT::Fit::FitUtil::EvaluateChi2Residual (const IModelFunction &func, const BinData &data, const double *p, unsigned int ipoint, double *g=nullptr, bool hasGrad=false)
 evaluate the residual contribution to the Chi2 given a model function and the BinPoint data and if the pointer g is not null evaluate also the gradient of the residual. More...
 
double ROOT::Fit::FitUtil::EvaluateLogL (const IModelFunction &func, const UnBinData &data, const double *p, int iWeight, bool extended, unsigned int &nPoints, ::ROOT::EExecutionPolicy executionPolicy, unsigned nChunks=0)
 evaluate the LogL given a model function and the data at the point x. More...
 
void ROOT::Fit::FitUtil::EvaluateLogLGradient (const IModelFunction &func, const UnBinData &data, const double *p, double *grad, unsigned int &nPoints, ::ROOT::EExecutionPolicy executionPolicy=::ROOT::EExecutionPolicy::kSequential, unsigned nChunks=0)
 evaluate the LogL gradient given a model function and the data at the point p. More...
 
double ROOT::Fit::FitUtil::EvaluatePdf (const IModelFunction &func, const UnBinData &data, const double *p, unsigned int ipoint, double *g=nullptr, bool hasGrad=false)
 evaluate the pdf contribution to the LogL given a model function and the BinPoint data. More...
 
double ROOT::Fit::FitUtil::EvaluatePoissonBinPdf (const IModelFunction &func, const BinData &data, const double *x, unsigned int ipoint, double *g=nullptr, bool hasGrad=false)
 evaluate the pdf contribution to the Poisson LogL given a model function and the BinPoint data. More...
 
double ROOT::Fit::FitUtil::EvaluatePoissonLogL (const IModelFunction &func, const BinData &data, const double *p, int iWeight, bool extended, unsigned int &nPoints, ::ROOT::EExecutionPolicy executionPolicy, unsigned nChunks=0)
 evaluate the Poisson LogL given a model function and the data at the point p. More...
 
void ROOT::Fit::FitUtil::EvaluatePoissonLogLGradient (const IModelFunction &func, const BinData &data, const double *p, double *grad, unsigned int &nPoints, ::ROOT::EExecutionPolicy executionPolicy=::ROOT::EExecutionPolicy::kSequential, unsigned nChunks=0)
 evaluate the Poisson LogL given a model function and the data at the point p. More...
 
unsigned ROOT::Fit::FitUtil::setAutomaticChunking (unsigned nEvents)
 

Macro Definition Documentation

◆ USE_PARAMCACHE

#define USE_PARAMCACHE

Definition at line 35 of file FitUtil.h.