15 #include <OpenMS/config.h>
69 alphabet_masses_(masses),
72 setPrecision(precision);
81 alphabet_masses_(other.alphabet_masses_),
82 precision_(other.precision_),
83 weights_(other.weights_) {}
100 return weights_.size();
151 return weights_.back();
162 return alphabet_masses_[i];
Represents a set of weights (double values and scaled with a certain precision their integer counterp...
Definition: Weights.h:42
void swap(size_type index1, size_type index2)
alphabet_mass_type getMinRoundingError() const
weights_type weights_
Definition: Weights.h:209
alphabet_masses_type alphabet_masses_
Definition: Weights.h:199
alphabet_mass_type precision_
Definition: Weights.h:204
void setPrecision(alphabet_mass_type precision)
alphabet_mass_type getMaxRoundingError() const
Weights(const Weights &other)
Definition: Weights.h:80
size_type size() const
Definition: Weights.h:98
Weights(const alphabet_masses_type &masses, alphabet_mass_type precision)
Definition: Weights.h:68
weight_type back() const
Definition: Weights.h:149
alphabet_mass_type getParentMass(const std::vector< unsigned int > &decomposition) const
weight_type operator[](size_type i) const
Definition: Weights.h:139
double alphabet_mass_type
Type of double values to be used.
Definition: Weights.h:48
weight_type getWeight(size_type i) const
Definition: Weights.h:109
Weights & operator=(const Weights &other)
std::vector< alphabet_mass_type > alphabet_masses_type
Type of container to store double values.
Definition: Weights.h:54
long unsigned int weight_type
Type of integer values to be used.
Definition: Weights.h:45
std::vector< weight_type > weights_type
Type of container to store integer values.
Definition: Weights.h:51
Weights()
Empty constructor.
Definition: Weights.h:60
weights_type::size_type size_type
Type of container's size.
Definition: Weights.h:57
alphabet_mass_type getPrecision() const
Definition: Weights.h:126
alphabet_mass_type getAlphabetMass(size_type i) const
Definition: Weights.h:160
std::ostream & operator<<(std::ostream &os, const IMSAlphabet &alphabet)
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19