10#ifndef ROOT_Minuit2_FumiliChi2FCN
11#define ROOT_Minuit2_FumiliChi2FCN
90 virtual std::vector<double>
Elements(
const std::vector<double> &par)
const = 0;
132 double operator()(
const std::vector<double> &par)
const override
135 double chiSquare = 0.0;
136 std::vector<double> vecElements =
Elements(par);
137 unsigned int vecElementsSize = vecElements.size();
139 for (
unsigned int i = 0; i < vecElementsSize; ++i)
140 chiSquare += vecElements[i] * vecElements[i];
151 double Up()
const override {
return 1.0; }
Extension of the FCNBase for the Fumili method.
void SetModelFunction(const ParametricFunction &modelFCN)
Sets the model function for the data (for example gaussian+linear for a peak)
const ParametricFunction * fModelFunction
double operator()(const std::vector< double > &par) const override
Calculates the sum of Elements squared, ie the chi-square.
const ParametricFunction * ModelFunction() const
Returns the model function used for the data.
~FumiliChi2FCN() override
virtual std::vector< double > Elements(const std::vector< double > &par) const =0
Evaluates the model function for the different measurement points and the Parameter values supplied,...
double Up() const override
!!!!!!!!!!!! to be commented
virtual const std::vector< double > & GetMeasurement(int Index) const =0
Accessor to the parameters of a given measurement.
virtual int GetNumberOfMeasurements() const =0
Accessor to the number of measurements used for calculating the present figure of merit.
Extension of the FCNBase for the Fumili method.
Function which has parameters.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...