10 #ifndef ROOT_Minuit2_ParametricFunction
11 #define ROOT_Minuit2_ParametricFunction
133 virtual double operator()(
const std::vector<double>&
x)
const=0;
154 virtual double operator()(
const std::vector<double>&
x,
const std::vector<double>& params)
const {
174 virtual std::vector<double>
GetGradient(
const std::vector<double>&
x)
const;
191 mutable std::vector<double>
par;
199 #endif // ROOT_Minuit2_ParametricFunction
virtual unsigned int NumberOfParameters() const
Accessor for the number of parameters.
Interface (abstract class) defining the function to be minimized, which has to be implemented by the ...
virtual void SetParameters(const std::vector< double > ¶ms) const
Sets the parameters of the ParametricFunction.
Function which has parameters.
ParametricFunction(const std::vector< double > ¶ms)
Constructor which initializes the ParametricFunction with the parameters given as input...
virtual std::vector< double > GetGradient(const std::vector< double > &x) const
Member function returning the Gradient of the function with respect to its variables (but without inc...
ParametricFunction(int nparams)
Constructor which initializes the ParametricFunction by setting the number of parameters.
virtual double operator()(const std::vector< double > &x, const std::vector< double > ¶ms) const
Evaluates the function with the given coordinates and Parameter values.
virtual const std::vector< double > & GetParameters() const
Accessor for the state of the parameters.
std::vector< double > par
The vector containing the parameters of the function It is mutable for "historical reasons" as in the...
virtual ~ParametricFunction()
virtual double operator()(const std::vector< double > &x) const =0
Evaluates the function with the given coordinates.