43 template<
typename _Scalar,
int _Rows,
int _Cols,
int _Options,
int _MaxRows,
int _MaxCols>
45 using MatrixXd = Matrix<double, -1, -1, 0, -1, -1>;
46 using VectorXd = Matrix<double, -1, 1, 0, -1, 1>;
53 namespace OptimizationFunctions
71 pos(0), lWidth(0), rWidth(0) {}
73 pos(p.pos), lWidth(p.lWidth), rWidth(p.rWidth) {}
124 : m_inputs(dimensions), m_values(num_data_points), m_data(data) {}
148 const int max_iteration_);
Definition: OptimizePick.h:118
OptPeakFunctor(unsigned dimensions, unsigned num_data_points, const OptimizePick::Data *data)
Definition: OptimizePick.h:123
int values() const
Definition: OptimizePick.h:121
int df(const Eigen::VectorXd &x, Eigen::MatrixXd &J)
const Data * m_data
Definition: OptimizePick.h:132
const int m_inputs
Definition: OptimizePick.h:131
int operator()(const Eigen::VectorXd &x, Eigen::VectorXd &fvec)
int inputs() const
Definition: OptimizePick.h:120
This class provides the non-linear optimization of the peak parameters.
Definition: OptimizePick.h:102
void setNumberIterations(const int max_iteration)
Mutable access to the number of iterations.
Definition: OptimizePick.h:165
void setPenalties(const struct OptimizationFunctions::PenaltyFactors &penalties)
Mutable access to the penalty factors.
Definition: OptimizePick.h:158
std::vector< Peak1D > RawDataVector
Profile data vector type.
Definition: OptimizePick.h:136
OptimizationFunctions::PenaltyFactors penalties
Definition: OptimizePick.h:113
OptimizePick()
Constructor.
Definition: OptimizePick.h:142
RawDataVector::iterator PeakIterator
Profile data iterator type.
Definition: OptimizePick.h:138
unsigned int max_iteration_
Maximum number of iterations during optimization.
Definition: OptimizePick.h:176
std::vector< double > positions
Positions and intensity values of the profile data.
Definition: OptimizePick.h:108
OptimizePick(const struct OptimizationFunctions::PenaltyFactors &penalties_, const int max_iteration_)
Constructor to set the penalty factors, the number of optimization iterations as well as the threshol...
unsigned int & getNumberIterations()
Mutable access to the number of iterations.
Definition: OptimizePick.h:163
struct OptimizationFunctions::PenaltyFactors & getPenalties()
Mutable access to the penalty factors.
Definition: OptimizePick.h:156
std::vector< PeakShape > peaks
This container contains the peak shapes to be optimized.
Definition: OptimizePick.h:111
const struct OptimizationFunctions::PenaltyFactors & getPenalties() const
Non-mutable access to the penalty factors.
Definition: OptimizePick.h:154
~OptimizePick()
Destructor.
void optimize(std::vector< PeakShape > &peaks, Data &data)
Start the optimization of the peak shapes peaks. The original peak shapes will be substituted by the ...
UInt getNumberIterations() const
Non-mutable access to the number of iterations.
Definition: OptimizePick.h:161
std::vector< double > signal
Definition: OptimizePick.h:109
Definition: OptimizePick.h:106
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
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
std::vector< Peak1D > RawDataVector
Profile data vector type.
Definition: OptimizePick.h:56
RawDataVector::iterator PeakIterator
Profile data iterator type.
Definition: OptimizePick.h:58
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Class for the penalty factors used during the optimization.
Definition: OptimizePick.h:69
double rWidth
Penalty factor for the peak shape's right width parameter.
Definition: OptimizePick.h:90
double pos
Penalty factor for the peak shape's position.
Definition: OptimizePick.h:86
PenaltyFactors()
Definition: OptimizePick.h:70
double lWidth
Penalty factor for the peak shape's left width parameter.
Definition: OptimizePick.h:88
PenaltyFactors & operator=(const PenaltyFactors &p)
Definition: OptimizePick.h:74
PenaltyFactors(const PenaltyFactors &p)
Definition: OptimizePick.h:72
~PenaltyFactors()
Definition: OptimizePick.h:83