10#ifndef ROOT_Minuit2_FumiliStandardChi2FCN
11#define ROOT_Minuit2_FumiliStandardChi2FCN
61 const std::vector<double> &pos,
const std::vector<double> &mvar)
65 assert(meas.size() == pos.size());
66 assert(meas.size() == mvar.size());
68 std::vector<double>
x(1);
69 unsigned int n = mvar.size();
73 for (
unsigned int i = 0; i <
n; ++i) {
102 const std::vector<std::vector<double>> &pos,
const std::vector<double> &mvar)
106 assert(meas.size() == pos.size());
107 assert(meas.size() == mvar.size());
111 unsigned int n = mvar.size();
113 for (
unsigned int i = 0; i <
n; ++i) {
141 std::vector<double>
Elements(
const std::vector<double> &par)
const;
153 virtual const std::vector<double> &
GetMeasurement(
int Index)
const;
176 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.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...