10 #ifndef ROOT_Minuit2_FumiliStandardMaximumLikelihoodFCN 11 #define ROOT_Minuit2_FumiliStandardMaximumLikelihoodFCN 55 const std::vector<double>& pos)
58 unsigned int n = pos.size();
60 std::vector<double>
x(1);
61 for (
unsigned int i = 0; i <
n; ++i) {
81 const std::vector<std::vector<double> >& pos) {
107 std::vector<double>
Elements(
const std::vector<double>& par)
const;
146 virtual void EvaluateAll(
const std::vector<double> & par );
158 #endif // ROOT_Minuit2_FumiliStandardMaximumLikelihoodFCN Class implementing the Elements member function for the standard maximum likelihood method...
Namespace for new ROOT classes and functions.
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 void EvaluateAll(const std::vector< double > &par)
Evaluate function Value, Gradient and Hessian using Fumili approximation, for values of parameters p ...
FumiliStandardMaximumLikelihoodFCN(const ParametricFunction &modelFCN, const std::vector< std::vector< double > > &pos)
Constructor which initializes the measurement points for the multi dimensional model function...
~FumiliStandardMaximumLikelihoodFCN()
FumiliStandardMaximumLikelihoodFCN(const ParametricFunction &modelFCN, const std::vector< double > &pos)
Constructor which initializes the measurement points for the one dimensional model function...
Function which has parameters.
virtual const std::vector< double > & GetMeasurement(int Index) const
Accessor to the position of the measurement (x coordinate).
RooCmdArg Index(RooCategory &icat)
virtual int GetNumberOfMeasurements() const
Accessor to the number of measurements used for calculating the maximum likelihood.
Extension of the FCNBase for the Fumili method.
std::vector< std::vector< double > > fPositions
void SetModelFunction(const ParametricFunction &modelFCN)
Sets the model function for the data (for example gaussian+linear for a peak)