44 template<
typename _Scalar,
int _Rows,
int _Cols,
int _Options,
int _MaxRows,
int _MaxCols>
46 using MatrixXd = Matrix<double, -1, -1, 0, -1, -1>;
47 using VectorXd = Matrix<double, -1, 1, 0, -1, 1>;
75 GenericFunctor(
int dimensions,
int num_data_points) : m_inputs(dimensions), m_values(num_data_points)
95 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:60
Fitter1D & operator=(const Fitter1D &source)
assignment operator
Definition: LevMarqFitter1D.h:64
virtual ~GenericFunctor()
Definition: LevMarqFitter1D.h:79
virtual int df(const Eigen::VectorXd &x, Eigen::MatrixXd &J) const =0
int values() const
Definition: LevMarqFitter1D.h:70
GenericFunctor(int dimensions, int num_data_points)
Definition: LevMarqFitter1D.h:75
virtual int operator()(const Eigen::VectorXd &x, Eigen::VectorXd &fvec) const =0
const int m_inputs
Definition: LevMarqFitter1D.h:89
int inputs() const
Definition: LevMarqFitter1D.h:66
Abstract class for 1D-model fitter using Levenberg-Marquardt algorithm for parameter optimization.
Definition: LevMarqFitter1D.h:57
LevMarqFitter1D()
Default constructor.
Definition: LevMarqFitter1D.h:93
Int max_iteration_
Maximum number of iterations.
Definition: LevMarqFitter1D.h:124
std::vector< double > ContainerType
Definition: LevMarqFitter1D.h:59
bool symmetric_
Parameter indicates symmetric peaks.
Definition: LevMarqFitter1D.h:122
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:104
LevMarqFitter1D & operator=(const LevMarqFitter1D &source)
assignment operator
Definition: LevMarqFitter1D.h:109
void optimize_(Eigen::VectorXd &x_init, GenericFunctor &functor) const
Optimize start parameter.
LevMarqFitter1D(const LevMarqFitter1D &source)
copy constructor
Definition: LevMarqFitter1D.h:99
int Int
Signed integer type.
Definition: Types.h:102
Definition: IsobaricIsotopeCorrector.h:41
Matrix< double, -1, -1, 0, -1, -1 > MatrixXd
Definition: IsobaricIsotopeCorrector.h:44
Matrix< double, -1, 1, 0, -1, 1 > VectorXd
Definition: IsobaricIsotopeCorrector.h:45
Definition: IsobaricIsotopeCorrector.h:43
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48