Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
 tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tbb::task_arena without forward declaring tbb::interface7
 
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.
 
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.
 
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.
 
double ROOT::Fit::FitUtil::EvaluateChi2Residual (const IModelFunction &func, const BinData &data, const double *p, unsigned int ipoint, double *g=nullptr, double *h=nullptr, bool hasGrad=false, bool fullHessian=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.
 
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.
 
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.
 
double ROOT::Fit::FitUtil::EvaluatePdf (const IModelFunction &func, const UnBinData &data, const double *p, unsigned int ipoint, double *g=nullptr, double *h=nullptr, bool hasGrad=false, bool fullHessian=false)
 evaluate the pdf contribution to the LogL given a model function and the BinPoint data.
 
double ROOT::Fit::FitUtil::EvaluatePoissonBinPdf (const IModelFunction &func, const BinData &data, const double *x, unsigned int ipoint, double *g=nullptr, double *h=nullptr, bool hasGrad=false, bool fullHessian=false)
 evaluate the pdf contribution to the Poisson LogL given a model function and the BinPoint data.
 
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.
 
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.
 
unsigned ROOT::Fit::FitUtil::setAutomaticChunking (unsigned nEvents)
 

Macro Definition Documentation

◆ USE_PARAMCACHE

#define USE_PARAMCACHE

Definition at line 35 of file FitUtil.h.