10#ifndef ROOT_Minuit2_FCNGradAdapter
11#define ROOT_Minuit2_FCNGradAdapter
35template<
class Function>
51 return fFunc.operator()(&
v[0]);
54 return fFunc.operator()(
v);
59 std::vector<double>
Gradient(
const std::vector<double>&
v)
const {
63 std::cout <<
" gradient in FCNAdapter = { " ;
64 for (
unsigned int i = 0; i <
fGrad.size(); ++i)
65 std::cout <<
fGrad[i] <<
"\t";
66 std::cout <<
"}" << std::endl;
77 mutable std::vector<double>
fGrad;
Double_t(* Function)(Double_t)
template wrapped class for adapting to FCNBase signature a IGradFunction
double operator()(const std::vector< double > &v) const
The meaning of the vector of parameters is of course defined by the user, who uses the values of thos...
bool CheckGradient() const
FCNGradAdapter(const Function &f, double up=1.)
double operator()(const double *v) const
std::vector< double > Gradient(const std::vector< double > &v) const
double Up() const
Error definition of the function.
std::vector< double > fGrad
Extension of the FCNBase for providing the analytical Gradient of the function.