Logo ROOT  
Reference Guide
MCFitter.h
Go to the documentation of this file.
1// @(#)root/tmva $Id$
2// Author: Andreas Hoecker, Peter Speckmayer, Joerg Stelzer, Helge Voss
3
4/**********************************************************************************
5 * Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6 * Package: TMVA *
7 * Class : MCFitter *
8 * Web : http://tmva.sourceforge.net *
9 * *
10 * Description: *
11 * Fitter using Monte Carlo sampling of parameters *
12 * *
13 * Authors (alphabetical): *
14 * Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland *
15 * Peter Speckmayer <speckmay@mail.cern.ch> - CERN, Switzerland *
16 * Joerg Stelzer <Joerg.Stelzer@cern.ch> - CERN, Switzerland *
17 * Helge Voss <Helge.Voss@cern.ch> - MPI-K Heidelberg, Germany *
18 * *
19 * Copyright (c) 2005: *
20 * CERN, Switzerland *
21 * MPI-K Heidelberg, Germany *
22 * *
23 * Redistribution and use in source and binary forms, with or without *
24 * modification, are permitted according to the terms listed in LICENSE *
25 * (http://tmva.sourceforge.net/LICENSE) *
26 **********************************************************************************/
27
28#ifndef ROOT_TMVA_MCFitter
29#define ROOT_TMVA_MCFitter
30
31//////////////////////////////////////////////////////////////////////////
32// //
33// MCFitter //
34// //
35// Fitter using Monte Carlo sampling of parameters //
36// //
37//////////////////////////////////////////////////////////////////////////
38
39#include "TMVA/FitterBase.h"
40#include <vector>
41
42namespace TMVA {
43
44 class MCFitter : public FitterBase {
45
46 public:
47
48 MCFitter( IFitterTarget& target, const TString& name,
49 const std::vector<TMVA::Interval*>& ranges, const TString& theOption );
50
51 virtual ~MCFitter() {}
52
53 void SetParameters( Int_t cycles );
54
55 Double_t Run( std::vector<Double_t>& pars );
56
57 private:
58
59 void DeclareOptions();
60
61 Int_t fSamples; // number of MC samples
62 Double_t fSigma; // new samples are generated randomly with a gaussian probability with fSigma around the current best value
63 UInt_t fSeed; // Seed for the random generator (0 takes random seeds)
64
65 ClassDef(MCFitter,0); // Fitter using Monte Carlo sampling of parameters
66 };
67
68} // namespace TMVA
69
70#endif
71
72
int Int_t
Definition: RtypesCore.h:45
unsigned int UInt_t
Definition: RtypesCore.h:46
double Double_t
Definition: RtypesCore.h:59
#define ClassDef(name, id)
Definition: Rtypes.h:325
char name[80]
Definition: TGX11.cxx:110
Base class for TMVA fitters.
Definition: FitterBase.h:51
Double_t Run()
estimator function interface for fitting
Definition: FitterBase.cxx:74
Interface for a fitter 'target'.
Definition: IFitterTarget.h:44
Fitter using Monte Carlo sampling of parameters.
Definition: MCFitter.h:44
UInt_t fSeed
Definition: MCFitter.h:63
void SetParameters(Int_t cycles)
set MC fitter configuration parameters
Definition: MCFitter.cxx:78
virtual ~MCFitter()
Definition: MCFitter.h:51
Double_t fSigma
Definition: MCFitter.h:62
MCFitter(IFitterTarget &target, const TString &name, const std::vector< TMVA::Interval * > &ranges, const TString &theOption)
constructor
Definition: MCFitter.cxx:51
void DeclareOptions()
Declare MCFitter options.
Definition: MCFitter.cxx:67
Int_t fSamples
Definition: MCFitter.h:61
Basic string class.
Definition: TString.h:136
create variable transformations