17 template<
typename _Scalar,
int _Rows,
int _Cols,
int _Options,
int _MaxRows,
int _MaxCols>
19 using MatrixXd = Matrix<double, -1, -1, 0, -1, -1>;
20 using VectorXd = Matrix<double, -1, 1, 0, -1, 1>;
27 namespace OptimizationFunctions
45 pos(0), lWidth(0), rWidth(0) {}
47 pos(p.pos), lWidth(p.lWidth), rWidth(p.rWidth) {}
94 int inputs()
const {
return m_inputs; }
95 int values()
const {
return m_values; }
98 : m_inputs(dimensions), m_values(num_data_points), m_data(data) {}
122 const int max_iteration_);
Definition: OptimizePick.h:92
OptPeakFunctor(unsigned dimensions, unsigned num_data_points, const OptimizePick::Data *data)
Definition: OptimizePick.h:97
int values() const
Definition: OptimizePick.h:95
int df(const Eigen::VectorXd &x, Eigen::MatrixXd &J)
const Data * m_data
Definition: OptimizePick.h:106
const int m_inputs
Definition: OptimizePick.h:105
int operator()(const Eigen::VectorXd &x, Eigen::VectorXd &fvec)
int inputs() const
Definition: OptimizePick.h:94
This class provides the non-linear optimization of the peak parameters.
Definition: OptimizePick.h:76
void setNumberIterations(const int max_iteration)
Mutable access to the number of iterations.
Definition: OptimizePick.h:139
void setPenalties(const struct OptimizationFunctions::PenaltyFactors &penalties)
Mutable access to the penalty factors.
Definition: OptimizePick.h:132
std::vector< Peak1D > RawDataVector
Profile data vector type.
Definition: OptimizePick.h:110
OptimizationFunctions::PenaltyFactors penalties
Definition: OptimizePick.h:87
OptimizePick()
Constructor.
Definition: OptimizePick.h:116
RawDataVector::iterator PeakIterator
Profile data iterator type.
Definition: OptimizePick.h:112
unsigned int max_iteration_
Maximum number of iterations during optimization.
Definition: OptimizePick.h:150
std::vector< double > positions
Positions and intensity values of the profile data.
Definition: OptimizePick.h:82
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:137
struct OptimizationFunctions::PenaltyFactors & getPenalties()
Mutable access to the penalty factors.
Definition: OptimizePick.h:130
std::vector< PeakShape > peaks
This container contains the peak shapes to be optimized.
Definition: OptimizePick.h:85
const struct OptimizationFunctions::PenaltyFactors & getPenalties() const
Non-mutable access to the penalty factors.
Definition: OptimizePick.h:128
~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:135
std::vector< double > signal
Definition: OptimizePick.h:83
Definition: OptimizePick.h:80
unsigned int UInt
Unsigned integer type.
Definition: Types.h:68
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
std::vector< Peak1D > RawDataVector
Profile data vector type.
Definition: OptimizePick.h:30
RawDataVector::iterator PeakIterator
Profile data iterator type.
Definition: OptimizePick.h:32
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
Class for the penalty factors used during the optimization.
Definition: OptimizePick.h:43
double rWidth
Penalty factor for the peak shape's right width parameter.
Definition: OptimizePick.h:64
double pos
Penalty factor for the peak shape's position.
Definition: OptimizePick.h:60
PenaltyFactors()
Definition: OptimizePick.h:44
double lWidth
Penalty factor for the peak shape's left width parameter.
Definition: OptimizePick.h:62
PenaltyFactors & operator=(const PenaltyFactors &p)
Definition: OptimizePick.h:48
PenaltyFactors(const PenaltyFactors &p)
Definition: OptimizePick.h:46
~PenaltyFactors()
Definition: OptimizePick.h:57