18 template<
typename _Scalar,
int _Rows,
int _Cols,
int _Options,
int _MaxRows,
int _MaxCols>
20 using MatrixXd = Matrix<double, -1, -1, 0, -1, -1>;
21 using VectorXd = Matrix<double, -1, 1, 0, -1, 1>;
49 GenericFunctor(
int dimensions,
int num_data_points) : m_inputs(dimensions), m_values(num_data_points)
69 this->defaults_.setValue(
"max_iteration", 500,
"Maximum number of iterations using by Levenberg-Marquardt algorithm.", {
"advanced"});
Abstract base class for all 1D-dimensional model fitter.
Definition: Fitter1D.h:34
Fitter1D & operator=(const Fitter1D &source)
assignment operator
Definition: LevMarqFitter1D.h:38
virtual ~GenericFunctor()
Definition: LevMarqFitter1D.h:53
virtual int df(const Eigen::VectorXd &x, Eigen::MatrixXd &J) const =0
int values() const
Definition: LevMarqFitter1D.h:44
GenericFunctor(int dimensions, int num_data_points)
Definition: LevMarqFitter1D.h:49
virtual int operator()(const Eigen::VectorXd &x, Eigen::VectorXd &fvec) const =0
const int m_inputs
Definition: LevMarqFitter1D.h:63
int inputs() const
Definition: LevMarqFitter1D.h:40
Abstract class for 1D-model fitter using Levenberg-Marquardt algorithm for parameter optimization.
Definition: LevMarqFitter1D.h:31
LevMarqFitter1D()
Default constructor.
Definition: LevMarqFitter1D.h:67
Int max_iteration_
Maximum number of iterations.
Definition: LevMarqFitter1D.h:98
std::vector< double > ContainerType
Definition: LevMarqFitter1D.h:33
bool symmetric_
Parameter indicates symmetric peaks.
Definition: LevMarqFitter1D.h:96
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
~LevMarqFitter1D() override
destructor
Definition: LevMarqFitter1D.h:78
LevMarqFitter1D & operator=(const LevMarqFitter1D &source)
assignment operator
Definition: LevMarqFitter1D.h:83
void optimize_(Eigen::VectorXd &x_init, GenericFunctor &functor) const
Optimize start parameter.
LevMarqFitter1D(const LevMarqFitter1D &source)
copy constructor
Definition: LevMarqFitter1D.h:73
int Int
Signed integer type.
Definition: Types.h:76
Definition: IsobaricIsotopeCorrector.h:15
Matrix< double, -1, -1, 0, -1, -1 > MatrixXd
Definition: IsobaricIsotopeCorrector.h:18
Matrix< double, -1, 1, 0, -1, 1 > VectorXd
Definition: IsobaricIsotopeCorrector.h:19
Definition: IsobaricIsotopeCorrector.h:17
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22