47 template<
typename _Scalar,
int _Rows,
int _Cols,
int _Options,
int _MaxRows,
int _MaxCols>
49 using MatrixXd = Matrix<double, -1, -1, 0, -1, -1>;
50 using VectorXd = Matrix<double, -1, 1, 0, -1, 1>;
72 int inputs()
const {
return m_inputs; }
73 int values()
const {
return m_values; }
76 : m_inputs(dimensions), m_values(num_data_points) {}
93 this->defaults_.setValue(
"max_iteration", 500,
"Maximum number of iterations using by Levenberg-Marquardt algorithm.", {
"advanced"});
99 max_iteration_(source.max_iteration_)
111 if (&source ==
this)
return *
this;
Abstract base class for all 1D-dimensional model fitter.
Definition: Fitter1D.h:62
virtual Fitter1D & operator=(const Fitter1D &source)
assignment operator
Definition: LevMarqFitter1D.h:70
virtual ~GenericFunctor()
Definition: LevMarqFitter1D.h:78
virtual int df(const Eigen::VectorXd &x, Eigen::MatrixXd &J) const =0
int values() const
Definition: LevMarqFitter1D.h:73
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:86
int inputs() const
Definition: LevMarqFitter1D.h:72
Abstract class for 1D-model fitter using Levenberg-Marquardt algorithm for parameter optimization.
Definition: LevMarqFitter1D.h:61
LevMarqFitter1D()
Default constructor.
Definition: LevMarqFitter1D.h:90
Int max_iteration_
Maximum number of iterations.
Definition: LevMarqFitter1D.h:124
std::vector< double > ContainerType
Definition: LevMarqFitter1D.h:65
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
virtual 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:97
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:47