Logo ROOT  
Reference Guide
GenericFunction.h
Go to the documentation of this file.
1 // @(#)root/minuit2:$Id$
2 // Authors: M. Winkler, F. James, L. Moneta, A. Zsenei 2003-2005
3 
4 /**********************************************************************
5  * *
6  * Copyright (c) 2005 LCG ROOT Math team, CERN/PH-SFT *
7  * *
8  **********************************************************************/
9 
10 #ifndef ROOT_Minuit2_GenericFunction
11 #define ROOT_Minuit2_GenericFunction
12 
13 #include "Minuit2/MnConfig.h"
14 
15 #include <vector>
16 
17 namespace ROOT {
18 
19 namespace Minuit2 {
20 
21 //_____________________________________________________________________
22 /**
23 
24 Class from which all the other classes, representing functions,
25 inherit. That is why it defines only one method, the operator(),
26 which allows to call the function.
27 
28 @author Andras Zsenei and Lorenzo Moneta, Creation date: 23 Sep 2004
29 
30 @ingroup Minuit
31 
32  */
33 
35 
36 public:
37  virtual ~GenericFunction() {}
38 
39  /**
40 
41  Evaluates the function using the vector containing the input values.
42 
43  @param x vector of the coordinates (for example the x coordinate for a
44  one-dimensional Gaussian)
45 
46  @return the result of the evaluation of the function.
47 
48  */
49 
50  virtual double operator()(const std::vector<double> &x) const = 0;
51 };
52 
53 } // namespace Minuit2
54 
55 } // namespace ROOT
56 
57 #endif // ROOT_Minuit2_GenericFunction
ROOT::Minuit2::GenericFunction
Class from which all the other classes, representing functions, inherit.
Definition: GenericFunction.h:34
ROOT::Minuit2::GenericFunction::~GenericFunction
virtual ~GenericFunction()
Definition: GenericFunction.h:37
x
Double_t x[n]
Definition: legend1.C:17
ROOT::Minuit2::GenericFunction::operator()
virtual double operator()(const std::vector< double > &x) const =0
Evaluates the function using the vector containing the input values.
ROOT
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Definition: EExecutionPolicy.hxx:4
MnConfig.h