1 #include "Chi2FitFigureOfMerit.h" 3 #include "ParametricModel.h" 51 throw std::runtime_error(
"Given model is not a parametric model");
54 if(
m_x.size() == 0)
return 0;
58 for(
unsigned int i=0; i<
m_x.size(); i++) {
61 const std::vector<double> &x =
m_x[i];
63 double fx = model->
getFormula()->EvalPar(x.data());
64 chi2 += (fx - y)*(fx - y)/(ey*ey);
78 return scoreToTest < referenceScore;
Class representing a model defined by a parametric function.
Abstract class describing the interface for a model.