10#ifndef ROOT_Minuit2_FCNGradientBase
11#define ROOT_Minuit2_FCNGradientBase
43 virtual std::vector<double>
Gradient(
const std::vector<double> &)
const = 0;
45 double * ,
double * )
const
57 virtual std::vector<double>
G2(
const std::vector<double> &)
const {
return std::vector<double>();}
60 virtual std::vector<double>
Hessian(
const std::vector<double> &)
const {
return std::vector<double>();}
64 virtual bool HasG2()
const {
return false; }
Interface (abstract class) defining the function to be minimized, which has to be implemented by the ...
virtual std::vector< double > G2(const std::vector< double > &) const
return second derivatives (diagonal of the Hessian matrix)
~FCNGradientBase() override
virtual std::vector< double > Gradient(const std::vector< double > &) const =0
virtual std::vector< double > GradientWithPrevResult(const std::vector< double > ¶meters, double *, double *, double *) const
virtual std::vector< double > Hessian(const std::vector< double > &) const
return Hessian
virtual GradientParameterSpace gradParameterSpace() const
virtual bool HasHessian() const
virtual bool CheckGradient() const
virtual bool HasG2() const
GradientParameterSpace
Extension of the FCNBase for providing the analytical Gradient of the function.
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.