Logo ROOT   6.08/07
Reference Guide
FitUtilParallel.h
Go to the documentation of this file.
1 // @(#)root/mathcore:$Id$
2 // Author: L. Moneta Tue Nov 28 10:52:47 2006
3 
4 /**********************************************************************
5  * *
6  * Copyright (c) 2006 LCG ROOT Math Team, CERN/PH-SFT *
7  * *
8  * *
9  **********************************************************************/
10 
11 // Header file for class FitUtil
12 
13 
14 #ifndef ROOT_Fit_FitUtilParallel
15 #define ROOT_Fit_FitUtilParallel
16 
17 #ifdef _WIN32 // no support for parallel fits on Win32
18 #ifdef ROOT_FIT_PARALLEL
19 #undef ROOT_FIT_PARALLEL
20 #endif
21 #endif
22 
23 #ifdef ROOT_FIT_PARALLEL
24 
25 #ifndef ROOT_Math_IParamFunctionfwd
26 #include "Math/IParamFunctionfwd.h"
27 #endif
28 
29 #ifndef ROOT_Fit_DataVectorfwd
30 #include "Fit/DataVectorfwd.h"
31 #endif
32 
33 
34 namespace ROOT {
35 
36  namespace Fit {
37 
38 
40 
41 
42 /**
43  namespace defining free functions for Fitting parallel mode
44 
45  Status: functions are not not completed and are still preliminary
46 
47  @ingroup FitMain
48 */
49 namespace FitUtilParallel {
50 
51 
52 
53  /**
54  evaluate the Chi2 given a model function and the data at the point x.
55  return also nPoints as the effective number of used points in the Chi2 evaluation
56  Use a parallel evaluation spawning multiple threads
57  */
58  double EvaluateChi2(IModelFunction & func, const BinData & data, const double * x, unsigned int & nPoints);
59 
60 
61  double EvaluateLogL(IModelFunction & func, const UnBinData & data, const double * p, unsigned int &nPoints);
62 
63 
64 } // end namespace FitUtil
65 
66  } // end namespace Fit
67 
68 } // end namespace ROOT
69 
70 
71 #endif /* ROOT_FIT_PARALLEL */
72 #endif /* ROOT_Fit_FitUtil */
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
Definition: StringConv.hxx:21
Double_t x[n]
Definition: legend1.C:17
IParamFunction interface (abstract class) describing multi-dimensional parameteric functions It is a ...
double EvaluateLogL(const IModelFunction &func, const UnBinData &data, const double *x, int iWeight, bool extended, unsigned int &nPoints)
evaluate the LogL given a model function and the data at the point x.
Definition: FitUtil.cxx:893
ROOT::Math::IParamMultiFunction IModelFunction
Definition: FitUtil.h:40
double EvaluateChi2(const IModelFunction &func, const BinData &data, const double *x, unsigned int &nPoints)
Chi2 Functions.
Definition: FitUtil.cxx:338
TFitResultPtr Fit(FitObject *h1, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)
Definition: HFitImpl.cxx:134
double func(double *x, double *p)
Definition: stressTF1.cxx:213