Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
17namespace ROOT {
18
19namespace Minuit2 {
20
21//_____________________________________________________________________
22/**
23
24Class from which all the other classes, representing functions,
25inherit. That is why it defines only one method, the operator(),
26which 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
36public:
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
Class from which all the other classes, representing functions, inherit.
virtual double operator()(const std::vector< double > &x) const =0
Evaluates the function using the vector containing the input values.
Double_t x[n]
Definition legend1.C:17
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...