Logo ROOT   6.08/07
Reference Guide
IFitterTarget.h
Go to the documentation of this file.
1 // @(#)root/tmva $Id$
2 // Author: Andreas Hoecker, Peter Speckmayer
3 
4 /**********************************************************************************
5  * Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6  * Package: TMVA *
7  * Class : IFitterTarget *
8  * Web : http://tmva.sourceforge.net *
9  * *
10  * Description: *
11  * Interface for generic fitter *
12  * *
13  * Authors (alphabetical): *
14  * Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland *
15  * Peter Speckmayer <speckmay@mail.cern.ch> - CERN, Switzerland *
16  * *
17  * Copyright (c) 2005: *
18  * CERN, Switzerland *
19  * MPI-K Heidelberg, Germany *
20  * *
21  * Redistribution and use in source and binary forms, with or without *
22  * modification, are permitted according to the terms listed in LICENSE *
23  * (http://tmva.sourceforge.net/LICENSE) *
24  **********************************************************************************/
25 
26 #ifndef ROOT_TMVA_IFitterTarget
27 #define ROOT_TMVA_IFitterTarget
28 
29 //////////////////////////////////////////////////////////////////////////
30 // //
31 // IFitterTarget //
32 // //
33 // Interface for a fitter "target" //
34 // //
35 //////////////////////////////////////////////////////////////////////////
36 
37 #include <vector>
38 
39 #ifndef ROOT_TMVA_Types
40 #include "TMVA/Types.h"
41 #endif
42 
43 
44 namespace TMVA {
45 
46  class IFitterTarget {
47 
48  public:
49 
50  IFitterTarget();
51 
52  virtual ~IFitterTarget() {}
53 
54  virtual Double_t EstimatorFunction( std::vector<Double_t>& parameters ) = 0;
55 
56  // function to notify the FitterTarget of the progress status of the fitter
57  // sender : "GA", "MC", ...
58  // progress : "init", "iteration", "last", "stop"
59  virtual void ProgressNotifier ( TString /*sender*/, TString /* progress */ ) {}
60 
61  private:
62 
63  ClassDef(IFitterTarget,0); // base class for a fitter "target"
64  };
65 
66 } // namespace TMVA
67 
68 #endif
virtual Double_t EstimatorFunction(std::vector< Double_t > &parameters)=0
Basic string class.
Definition: TString.h:137
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual void ProgressNotifier(TString, TString)
Definition: IFitterTarget.h:59
virtual ~IFitterTarget()
Definition: IFitterTarget.h:52
double Double_t
Definition: RtypesCore.h:55
IFitterTarget()
constructor
Abstract ClassifierFactory template that handles arbitrary types.