Class implementing the Elements member function for the standard maximum likelihood method.
- Author
- Andras Zsenei and Lorenzo Moneta, Creation date: 4 Sep 2004
- See also
- FumiliMaximumLikelihoodFCN
Definition at line 34 of file FumiliStandardMaximumLikelihoodFCN.h.
|
| FumiliStandardMaximumLikelihoodFCN (const ParametricFunction &modelFCN, std::span< const double > pos) |
| Constructor which initializes the measurement points for the one dimensional model function.
|
|
| FumiliStandardMaximumLikelihoodFCN (const ParametricFunction &modelFCN, std::span< const std::vector< double > > pos) |
| Constructor which initializes the measurement points for the multi dimensional model function.
|
|
std::vector< double > | Elements (std::vector< double > const &par) const override |
| Evaluates the model function for the different measurement points and the Parameter values supplied.
|
|
void | EvaluateAll (std::vector< double > const &par) override |
| Evaluate function Value, Gradient and Hessian using Fumili approximation, for values of parameters p The result is cached inside and is return from the FumiliFCNBase::Value , FumiliFCNBase::Gradient and FumiliFCNBase::Hessian methods.
|
|
const std::vector< double > & | GetMeasurement (int Index) const override |
| Accessor to the position of the measurement (x coordinate).
|
|
int | GetNumberOfMeasurements () const override |
| Accessor to the number of measurements used for calculating the maximum likelihood.
|
|
| FumiliMaximumLikelihoodFCN () |
|
const ParametricFunction * | ModelFunction () const |
| Returns the model function used for the data.
|
|
double | operator() (std::vector< double > const &par) const override |
| Calculates the function for the maximum likelihood method.
|
|
void | SetModelFunction (const ParametricFunction &modelFCN) |
| Sets the model function for the data (for example gaussian+linear for a peak)
|
|
double | Up () const override |
| !!!!!!!!!!!! to be commented
|
|
| FumiliFCNBase () |
| Default Constructor.
|
|
| FumiliFCNBase (unsigned int npar) |
| Constructor which initializes the class with the function provided by the user for modeling the data.
|
|
| ~FumiliFCNBase () override |
|
virtual unsigned int | Dimension () |
| return number of function variable (parameters) , i.e.
|
|
virtual const std::vector< double > & | Gradient () const |
| Return cached Value of function Gradient estimated previously using the FumiliFCNBase::EvaluateAll method.
|
|
std::vector< double > | Gradient (std::vector< double > const &) const override |
|
bool | HasGradient () const override |
|
std::vector< double > | Hessian (std::vector< double > const &) const override |
| Return Value of the i-th j-th element of the Hessian matrix estimated previously using the FumiliFCNBase::EvaluateAll method.
|
|
virtual double | Hessian (unsigned int row, unsigned int col) const |
|
virtual double | Value () const |
| Return cached Value of objective function estimated previously using the FumiliFCNBase::EvaluateAll method.
|
|
virtual double | ErrorDef () const |
| Error definition of the function.
|
|
virtual std::vector< double > | G2 (std::vector< double > const &) const |
| return second derivatives (diagonal of the Hessian matrix)
|
|
virtual std::vector< double > | GradientWithPrevResult (std::vector< double > const ¶meters, double *, double *, double *) const |
|
virtual GradientParameterSpace | gradParameterSpace () const |
|
virtual bool | HasG2 () const |
|
virtual bool | HasHessian () const |
|
virtual void | SetErrorDef (double) |
| add interface to set dynamically a new error definition Re-implement this function if needed.
|
|
virtual | ~GenericFunction () |
|