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;
215 #endif // ROOT_Minuit2_FumiliStandardChi2FCN
std::vector< std::vector< double > > fPositions
Namespace for new ROOT classes and functions.
virtual const std::vector< double > & GetMeasurement(int Index) const
Accessor to the position of the measurement (x coordinate).
std::vector< double > Elements(const std::vector< double > &par) const
Evaluates the model function for the different measurement points and the Parameter values supplied...
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.
virtual void EvaluateAll(const std::vector< double > &par)
Evaluate function Value, Gradient and Hessian using Fumili approximation, for values of parameters p ...
Class implementing the standard chi square function, which is the sum of the squares of the figures-o...
virtual int GetNumberOfMeasurements() const
Accessor to the number of measurements used for calculating the chi-square.
Extension of the FCNBase for the Fumili method.
Function which has parameters.
RooCmdArg Index(RooCategory &icat)
void SetModelFunction(const ParametricFunction &modelFCN)
Sets the model function for the data (for example gaussian+linear for a peak)
std::vector< double > fInvErrors
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.