Logo ROOT   6.10/09
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 #include "Math/IParamFunctionfwd.h"
26 
27 #include "Fit/DataVectorfwd.h"
28 
29 
30 namespace ROOT {
31 
32  namespace Fit {
33 
34 
36 
37 
38 /**
39  namespace defining free functions for Fitting parallel mode
40 
41  Status: functions are not not completed and are still preliminary
42 
43  @ingroup FitMain
44 */
45 namespace FitUtilParallel {
46 
47 
48 
49  /**
50  evaluate the Chi2 given a model function and the data at the point x.
51  return also nPoints as the effective number of used points in the Chi2 evaluation
52  Use a parallel evaluation spawning multiple threads
53  */
54  double EvaluateChi2(IModelFunction & func, const BinData & data, const double * x, unsigned int & nPoints);
55 
56 
57  double EvaluateLogL(IModelFunction & func, const UnBinData & data, const double * p, unsigned int &nPoints);
58 
59 
60 } // end namespace FitUtil
61 
62  } // end namespace Fit
63 
64 } // end namespace ROOT
65 
66 
67 #endif /* ROOT_FIT_PARALLEL */
68 #endif /* ROOT_Fit_FitUtil */
Namespace for new ROOT classes and functions.
Definition: StringConv.hxx:21
Double_t x[n]
Definition: legend1.C:17
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:892
ROOT::Math::IParamMultiFunction IModelFunction
Definition: FitUtil.h:35
double EvaluateChi2(const IModelFunction &func, const BinData &data, const double *x, unsigned int &nPoints)
Chi2 Functions.
Definition: FitUtil.cxx:337
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