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 <ROOT/RSpan.hxx>
16
17#include <vector>
18
19namespace ROOT {
20
21namespace Minuit2 {
22
23//_____________________________________________________________________
24/**
25
26Class from which all the other classes, representing functions,
27inherit. That is why it defines only one method, the operator(),
28which allows to call the function.
29
30@author Andras Zsenei and Lorenzo Moneta, Creation date: 23 Sep 2004
31
32@ingroup Minuit
33
34 */
35
37
38public:
39 virtual ~GenericFunction() {}
40
41 /**
42
43 Evaluates the function using the vector containing the input values.
44
45 @param x vector of the coordinates (for example the x coordinate for a
46 one-dimensional Gaussian)
47
48 @return the result of the evaluation of the function.
49
50 */
51
52 virtual double operator()(std::vector<double> const& x) const = 0;
53};
54
55} // namespace Minuit2
56
57} // namespace ROOT
58
59#endif // ROOT_Minuit2_GenericFunction
Class from which all the other classes, representing functions, inherit.
virtual double operator()(std::vector< double > const &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...