46 int df(
const double* x,
double* J)
override;
77 bool checkMinimalRTSpan(
const std::pair<double, double>& rt_bounds,
const double min_rt_span)
override;
99 static const double EPSILON_COEFS_[];
Definition EGHTraceFitter.h:35
~EGHTraceFunctor() override
EGHTraceFunctor(int dimensions, const TraceFitter::ModelData *data)
int operator()(const double *x, double *fvec) override
Compute residuals at the current parameter vector.
int df(const double *x, double *J) override
Compute the Jacobian at the current parameter vector.
const TraceFitter::ModelData * m_data
Definition EGHTraceFitter.h:49
A RT Profile fitter using an Exponential Gaussian Hybrid background model.
Definition EGHTraceFitter.h:30
void getOptimizedParameters_(const std::vector< double > &x_init) override
Subclass hook: copy the optimised parameter vector back into the subclass's model fields.
std::string getGnuplotFormula(const FeatureFinderAlgorithmPickedHelperStructs::MassTrace &trace, const char function_name, const double baseline, const double rt_shift) override
Gnuplot expression of the fitted model for trace.
double getLowerRTBound() const override
Lower RT bound of the fitted RT model.
double getHeight() const override
Height of the fitted RT model at its centre.
bool checkMaximalRTSpan(const double max_rt_span) override
Whether the fitted RT model stays within max_rt_span of the extended search area.
double tau_
Definition EGHTraceFitter.h:92
double getFWHM() const override
Full width at half maximum of the fitted RT model.
double getArea() override
Area under the fitted RT model.
double sigma_
Definition EGHTraceFitter.h:91
void fit(FeatureFinderAlgorithmPickedHelperStructs::MassTraces &traces) override
Run the LM fit on traces.
double getUpperRTBound() const override
Upper RT bound of the fitted RT model.
double getValue(double rt) const override
Evaluate the fitted model at retention time rt.
EGHTraceFitter & operator=(const EGHTraceFitter &source)
std::pair< double, double > getAlphaBoundaries_(const double alpha) const
Return an ordered pair of the positions where the EGH reaches a height of alpha * height of the EGH.
double getCenter() const override
Centre of the fitted RT model.
std::pair< double, double > sigma_5_bound_
Definition EGHTraceFitter.h:94
double height_
Definition EGHTraceFitter.h:89
~EGHTraceFitter() override
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
static const Size NUM_PARAMS_
Definition EGHTraceFitter.h:101
double region_rt_span_
Definition EGHTraceFitter.h:96
EGHTraceFitter(const EGHTraceFitter &other)
void setInitialParameters_(FeatureFinderAlgorithmPickedHelperStructs::MassTraces &traces)
bool checkMinimalRTSpan(const std::pair< double, double > &rt_bounds, const double min_rt_span) override
Whether the fitted RT model covers at least min_rt_span of the extended search area.
double apex_rt_
Definition EGHTraceFitter.h:88
Generic LM functor with a raw-pointer interface, used to keep Eigen out of the public API.
Definition TraceFitter.h:55
Abstract base class for fitting an RT-shape model to one or more mass traces.
Definition TraceFitter.h:43
Helper bundle passed to functors so they can read both the traces and the weighting flag.
Definition TraceFitter.h:215
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Helper struct for mass traces used in FeatureFinderAlgorithmPicked.
Definition FeatureFinderAlgorithmPickedHelperStructs.h:54
Helper struct for a collection of mass traces used in FeatureFinderAlgorithmPicked.
Definition FeatureFinderAlgorithmPickedHelperStructs.h:85