10 #ifndef ROOT_Minuit2_FumiliChi2FCN
11 #define ROOT_Minuit2_FumiliChi2FCN
100 virtual std::vector<double>
Elements(
const std::vector<double>&
par)
const = 0;
149 double chiSquare = 0.0;
150 std::vector<double> vecElements =
Elements(par);
151 unsigned int vecElementsSize = vecElements.size();
153 for (
unsigned int i = 0; i < vecElementsSize; ++i)
154 chiSquare += vecElements[i]*vecElements[i];
167 virtual double Up()
const {
return 1.0; }
182 #endif // ROOT_Minuit2_FumiliChi2FCN
const ParametricFunction * ModelFunction() const
Returns the model function used for the data.
Namespace for new ROOT classes and functions.
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...
virtual double Up() const
!!!!!!!!!!!! to be commented
const ParametricFunction * fModelFunction
double operator()(const std::vector< double > &par) const
Calculates the sum of Elements squared, ie the chi-square.
Extension of the FCNBase for the Fumili method.
Function which has parameters.
RooCmdArg Index(RooCategory &icat)
virtual int GetNumberOfMeasurements() const =0
Accessor to the number of measurements used for calculating the present figure of merit...
virtual const std::vector< double > & GetMeasurement(int Index) const =0
Accessor to the parameters of a given measurement.
void SetModelFunction(const ParametricFunction &modelFCN)
Sets the model function for the data (for example gaussian+linear for a peak)
Extension of the FCNBase for the Fumili method.