17namespace CurveFitting {
18namespace CostFunctions {
19class CostFuncLeastSquares;
21namespace FuncMinimisers {
34 std::string
name()
const override {
return "DampedGaussNewtonMinimizer"; }
39 bool iterate(
size_t)
override;
41 double costFunctionVal()
override;
An interface for function minimizers.
Implements a Gauss-Newton minimization algorithm with damping for use with least squares cost functio...
std::string name() const override
Name of the minimizer.
std::shared_ptr< CostFunctions::CostFuncLeastSquares > m_leastSquares
Pointer to the cost function. Must be the least squares.
double m_relTol
Relative tolerance.
std::shared_ptr< ICostFunction > ICostFunction_sptr
define a shared pointer to a cost function
Helper class which provides the Collimation Length for SANS instruments.