39 #include <unsupported/Eigen/NonLinearOptimization> 64 int inputs()
const {
return m_inputs; }
65 int values()
const {
return m_values; }
68 : m_inputs(dimensions), m_values(num_data_points) {}
72 virtual int operator()(
const Eigen::VectorXd &x, Eigen::VectorXd &fvec) = 0;
75 virtual int df(
const Eigen::VectorXd &x, Eigen::MatrixXd &J) = 0;
85 this->defaults_.setValue(
"max_iteration", 500,
"Maximum number of iterations using by Levenberg-Marquardt algorithm.", ListUtils::create<String>(
"advanced"));
91 max_iteration_(source.max_iteration_)
103 if (&source ==
this)
return *
this;
125 void updateMembers_()
override;
Abstract class for 1D-model fitter using Levenberg-Marquardt algorithm for parameter optimization...
Definition: LevMarqFitter1D.h:51
int inputs() const
Definition: LevMarqFitter1D.h:64
Int max_iteration_
Maximum number of iterations.
Definition: LevMarqFitter1D.h:116
GenericFunctor(int dimensions, int num_data_points)
Definition: LevMarqFitter1D.h:67
virtual LevMarqFitter1D & operator=(const LevMarqFitter1D &source)
assignment operator
Definition: LevMarqFitter1D.h:101
LevMarqFitter1D(const LevMarqFitter1D &source)
copy constructor
Definition: LevMarqFitter1D.h:89
Definition: LevMarqFitter1D.h:61
~LevMarqFitter1D() override
destructor
Definition: LevMarqFitter1D.h:96
const int m_values
Definition: LevMarqFitter1D.h:78
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
virtual Fitter1D & operator=(const Fitter1D &source)
assignment operator
int values() const
Definition: LevMarqFitter1D.h:65
LevMarqFitter1D()
Default constructor.
Definition: LevMarqFitter1D.h:82
bool symmetric_
Parameter indicates symmetric peaks.
Definition: LevMarqFitter1D.h:114
Abstract base class for all 1D-dimensional model fitter.
Definition: Fitter1D.h:58
std::vector< double > ContainerType
Definition: LevMarqFitter1D.h:57
int Int
Signed integer type.
Definition: Types.h:102
virtual ~GenericFunctor()
Definition: LevMarqFitter1D.h:70