123 stop_condition_(stop_condition),
125 use_total_prob_(use_total_prob)
144 stop_condition_ = stop_condition;
150 return stop_condition_;
156 absolute_ = absolute;
168 use_total_prob_ = total;
174 return use_total_prob_;
178 double stop_condition_ = 0.01;
179 bool absolute_ =
false;
180 bool use_total_prob_ =
true;
Isotope pattern generator for fine isotope distributions.
Definition: FineIsotopePatternGenerator.h:98
void setAbsolute(bool absolute)
Set whether threshold is absolute or relative probability (ignored if use_total_prob is true,...
Definition: FineIsotopePatternGenerator.h:154
bool getTotalProbability() const
Returns whether total probability should be computed (see FineIsotopePatternGenerator() )
Definition: FineIsotopePatternGenerator.h:172
bool getAbsolute() const
Returns whether threshold is absolute or relative probability (ignored if use_total_prob is true,...
Definition: FineIsotopePatternGenerator.h:160
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:148
void setThreshold(double stop_condition)
Set probability stop condition (lower values generate fewer results)
Definition: FineIsotopePatternGenerator.h:142
FineIsotopePatternGenerator(double stop_condition, bool use_total_prob=true, bool absolute=false)
Constructor.
Definition: FineIsotopePatternGenerator.h:122
void setTotalProbability(bool total)
Set whether total probability should be computed (see FineIsotopePatternGenerator() )
Definition: FineIsotopePatternGenerator.h:166
Definition: IsotopeDistribution.h:39
Provides an interface for different isotope pattern generator methods.
Definition: IsotopePatternGenerator.h:42
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19