149 stop_condition_(stop_condition),
151 use_total_prob_(use_total_prob)
170 stop_condition_ = stop_condition;
176 return stop_condition_;
182 absolute_ = absolute;
194 use_total_prob_ = total;
200 return use_total_prob_;
204 double stop_condition_ = 0.01;
205 bool absolute_ =
false;
206 bool use_total_prob_ =
true;
Isotope pattern generator for fine isotope distributions.
Definition: FineIsotopePatternGenerator.h:124
void setAbsolute(bool absolute)
Set whether threshold is absolute or relative probability (ignored if use_total_prob is true,...
Definition: FineIsotopePatternGenerator.h:180
bool getTotalProbability() const
Returns whether total probability should be computed (see FineIsotopePatternGenerator() )
Definition: FineIsotopePatternGenerator.h:198
bool getAbsolute() const
Returns whether threshold is absolute or relative probability (ignored if use_total_prob is true,...
Definition: FineIsotopePatternGenerator.h:186
FineIsotopePatternGenerator()=default
Default Constructor.
IsotopeDistribution run(const EmpiricalFormula &) const override
Creates an isotope distribution from an empirical sum formula.
double getThreshold() const
Get probability stop condition (lower values generate fewer results)
Definition: FineIsotopePatternGenerator.h:174
void setThreshold(double stop_condition)
Set probability stop condition (lower values generate fewer results)
Definition: FineIsotopePatternGenerator.h:168
FineIsotopePatternGenerator(double stop_condition, bool use_total_prob=true, bool absolute=false)
Constructor.
Definition: FineIsotopePatternGenerator.h:148
void setTotalProbability(bool total)
Set whether total probability should be computed (see FineIsotopePatternGenerator() )
Definition: FineIsotopePatternGenerator.h:192
Definition: IsotopeDistribution.h:65
Provides an interface for different isotope pattern generator methods.
Definition: IsotopePatternGenerator.h:68
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48