10#ifndef ROOT_Minuit2_FumiliStandardChi2FCN
11#define ROOT_Minuit2_FumiliStandardChi2FCN
66 const std::vector<double>& pos,
67 const std::vector<double>& mvar)
71 assert(meas.size() == pos.size());
72 assert(meas.size() == mvar.size());
74 std::vector<double>
x(1);
75 unsigned int n = mvar.size();
79 for (
unsigned int i = 0; i <
n; ++i)
111 const std::vector<std::vector<double> >& pos,
112 const std::vector<double>& mvar)
116 assert(meas.size() == pos.size());
117 assert(meas.size() == mvar.size());
121 unsigned int n = mvar.size();
123 for (
unsigned int i = 0; i <
n; ++i)
160 std::vector<double>
Elements(
const std::vector<double>& par)
const;
199 virtual void EvaluateAll(
const std::vector<double> & par );
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)
Class implementing the standard chi square function, which is the sum of the squares of the figures-o...
FumiliStandardChi2FCN(const ParametricFunction &modelFCN, const std::vector< double > &meas, const std::vector< double > &pos, const std::vector< double > &mvar)
Constructor which initializes chi square function for one-dimensional model function.
virtual int GetNumberOfMeasurements() const
Accessor to the number of measurements used for calculating the chi-square.
std::vector< double > fInvErrors
virtual void EvaluateAll(const std::vector< double > &par)
Evaluate function Value, Gradient and Hessian using Fumili approximation, for values of parameters p ...
std::vector< std::vector< double > > fPositions
std::vector< double > fMeasurements
FumiliStandardChi2FCN(const ParametricFunction &modelFCN, const std::vector< double > &meas, const std::vector< std::vector< double > > &pos, const std::vector< double > &mvar)
Constructor which initializes the multi-dimensional model function.
std::vector< double > Elements(const std::vector< double > &par) const
Evaluates the model function for the different measurement points and the Parameter values supplied,...
virtual const std::vector< double > & GetMeasurement(int Index) const
Accessor to the position of the measurement (x coordinate).
Function which has parameters.
RooCmdArg Index(RooCategory &icat)