Mantid
|
An interface for specifying the cost function to be used with Fit algorithm or minimizers, for example, the default being least squares fitting. More...
#include <ICostFunction.h>
Public Member Functions | |
virtual void | deriv (std::vector< double > &der) const =0 |
Calculate the derivatives of the cost function. More... | |
virtual double | getParameter (size_t i) const =0 |
Get i-th parameter. More... | |
virtual std::string | name () const =0 |
Get name of minimizer. More... | |
virtual size_t | nParams () const =0 |
Number of parameters. More... | |
virtual void | setParameter (size_t i, const double &value)=0 |
Set i-th parameter. More... | |
virtual std::string | shortName () const |
Get short name of minimizer - useful for say labels in guis. More... | |
virtual double | val () const =0 |
Calculate value of cost function. More... | |
virtual double | valAndDeriv (std::vector< double > &der) const =0 |
Calculate the value and the derivatives of the cost function. More... | |
virtual | ~ICostFunction ()=default |
Virtual destructor. More... | |
An interface for specifying the cost function to be used with Fit algorithm or minimizers, for example, the default being least squares fitting.
Definition at line 24 of file ICostFunction.h.
|
virtualdefault |
Virtual destructor.
|
pure virtual |
Calculate the derivatives of the cost function.
der | :: Container to output the derivatives |
Implemented in Mantid::CurveFitting::CostFunctions::CostFuncFitting.
|
pure virtual |
Get i-th parameter.
i | :: Index of a parameter |
Implemented in Mantid::CurveFitting::CostFunctions::CostFuncFitting.
|
pure virtual |
|
pure virtual |
Number of parameters.
Implemented in Mantid::CurveFitting::CostFunctions::CostFuncFitting.
|
pure virtual |
Set i-th parameter.
i | :: Index of a parameter |
value | :: New value of the parameter |
Implemented in Mantid::CurveFitting::CostFunctions::CostFuncFitting.
|
inlinevirtual |
Get short name of minimizer - useful for say labels in guis.
Reimplemented in Mantid::CurveFitting::CostFunctions::CostFuncLeastSquares, Mantid::CurveFitting::CostFunctions::CostFuncPoisson, Mantid::CurveFitting::CostFunctions::CostFuncRwp, and Mantid::CurveFitting::CostFunctions::CostFuncUnweightedLeastSquares.
Definition at line 33 of file ICostFunction.h.
|
pure virtual |
Calculate value of cost function.
Implemented in Mantid::CurveFitting::CostFunctions::CostFuncFitting.
|
pure virtual |
Calculate the value and the derivatives of the cost function.
der | :: Container to output the derivatives |
Implemented in Mantid::CurveFitting::CostFunctions::CostFuncFitting.