10#ifndef ROOT_Minuit2_FumiliChi2FCN
11#define ROOT_Minuit2_FumiliChi2FCN
99 virtual std::vector<double>
Elements(
const std::vector<double>& par)
const = 0;
148 double chiSquare = 0.0;
149 std::vector<double> vecElements =
Elements(par);
150 unsigned int vecElementsSize = vecElements.size();
152 for (
unsigned int i = 0; i < vecElementsSize; ++i)
153 chiSquare += vecElements[i]*vecElements[i];
166 virtual double Up()
const {
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
const ParametricFunction * ModelFunction() const
Returns the model function used for the data.
virtual double Up() const
!!!!!!!!!!!! to be commented
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 operator()(const std::vector< double > &par) const
Calculates the sum of Elements squared, ie the chi-square.
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.
RooCmdArg Index(RooCategory &icat)