10#ifndef ROOT_Minuit2_FumiliMaximumLikelihoodFCN
11#define ROOT_Minuit2_FumiliMaximumLikelihoodFCN
98 virtual std::vector<double>
Elements(
const std::vector<double>& par)
const = 0;
146 double sumoflogs = 0.0;
147 std::vector<double> vecElements =
Elements(par);
148 unsigned int vecElementsSize = vecElements.size();
150 for (
unsigned int i = 0; i < vecElementsSize; ++i) {
151 double tmp = vecElements[i];
170 virtual double Up()
const {
return 0.5; }
Extension of the FCNBase for the Fumili method.
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)
const ParametricFunction * ModelFunction() const
Returns the model function used for the data.
virtual std::vector< double > Elements(const std::vector< double > &par) const =0
Evaluates the model function for the different measurement points and the Parameter values supplied,...
const ParametricFunction * fModelFunction
virtual const std::vector< double > & GetMeasurement(int Index) const =0
Accessor to the parameters of a given measurement.
virtual double Up() const
!!!!!!!!!!!! to be commented
virtual ~FumiliMaximumLikelihoodFCN()
double operator()(const std::vector< double > &par) const
Calculates the function for the maximum likelihood method.
FumiliMaximumLikelihoodFCN()
virtual int GetNumberOfMeasurements() const =0
Accessor to the number of measurements used for calculating the present figure of merit.
Function which has parameters.
T EvalLog(T x)
safe evaluation of log(x) with a protections against negative or zero argument to the log smooth line...
Namespace for new ROOT classes and functions.
RooCmdArg Index(RooCategory &icat)