136 stop_condition_(stop_condition),
138 use_total_prob_(use_total_prob)
157 stop_condition_ = stop_condition;
163 return stop_condition_;
169 absolute_ = absolute;
181 use_total_prob_ = total;
187 return use_total_prob_;
191 double stop_condition_ = 0.01;
192 bool absolute_ =
false;
193 bool use_total_prob_ =
true;
Isotope pattern generator for fine isotope distributions.
Definition: FineIsotopePatternGenerator.h:111
void setAbsolute(bool absolute)
Set whether threshold is absolute or relative probability (ignored if use_total_prob is true,...
Definition: FineIsotopePatternGenerator.h:167
bool getTotalProbability() const
Returns whether total probability should be computed.
Definition: FineIsotopePatternGenerator.h:185
bool getAbsolute() const
Returns whether threshold is absolute or relative probability (ignored if use_total_prob is true,...
Definition: FineIsotopePatternGenerator.h:173
FineIsotopePatternGenerator()=default
Default Constructor.
double getThreshold() const
Get probability stop condition (lower values generate fewer results)
Definition: FineIsotopePatternGenerator.h:161
void setThreshold(double stop_condition)
Set probability stop condition (lower values generate fewer results)
Definition: FineIsotopePatternGenerator.h:155
FineIsotopePatternGenerator(double stop_condition, bool use_total_prob=true, bool absolute=false)
Constructor.
Definition: FineIsotopePatternGenerator.h:135
void setTotalProbability(bool total)
Set whether total probability should be computed.
Definition: FineIsotopePatternGenerator.h:179
IsotopeDistribution run(const EmpiricalFormula &) const
Creates an isotope distribution from an empirical sum formula.
Definition: IsotopeDistribution.h:65
Provides an interface for different isotope pattern generator methods.
Definition: IsotopePatternGenerator.h:54
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47