10 #ifndef ROOT_Minuit2_FumiliChi2FCN 11 #define ROOT_Minuit2_FumiliChi2FCN 99 virtual std::vector<double>
Elements(
const std::vector<double>& par)
const = 0;
115 virtual const std::vector<double> &
GetMeasurement(
int Index)
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; }
181 #endif // ROOT_Minuit2_FumiliChi2FCN 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...
const ParametricFunction * ModelFunction() const
Returns the model function used for the data.
const ParametricFunction * fModelFunction
double operator()(const std::vector< double > &par) const
Calculates the sum of Elements squared, ie the chi-square.
virtual double Up() const
!!!!!!!!!!!! to be commented
Extension of the FCNBase for the Fumili method.
Function which has parameters.
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.