41 #include <OpenMS/config.h>
95 alphabet_masses_(masses),
98 setPrecision(precision);
107 alphabet_masses_(other.alphabet_masses_),
108 precision_(other.precision_),
109 weights_(other.weights_) {}
126 return weights_.size();
177 return weights_.back();
188 return alphabet_masses_[i];
Represents a set of weights (double values and scaled with a certain precision their integer counterp...
Definition: Weights.h:68
void swap(size_type index1, size_type index2)
alphabet_mass_type getMinRoundingError() const
weights_type weights_
Definition: Weights.h:235
alphabet_masses_type alphabet_masses_
Definition: Weights.h:225
alphabet_mass_type precision_
Definition: Weights.h:230
void setPrecision(alphabet_mass_type precision)
alphabet_mass_type getMaxRoundingError() const
Weights(const Weights &other)
Definition: Weights.h:106
size_type size() const
Definition: Weights.h:124
Weights(const alphabet_masses_type &masses, alphabet_mass_type precision)
Definition: Weights.h:94
weight_type back() const
Definition: Weights.h:175
alphabet_mass_type getParentMass(const std::vector< unsigned int > &decomposition) const
weight_type operator[](size_type i) const
Definition: Weights.h:165
double alphabet_mass_type
Type of double values to be used.
Definition: Weights.h:74
weight_type getWeight(size_type i) const
Definition: Weights.h:135
Weights & operator=(const Weights &other)
std::vector< alphabet_mass_type > alphabet_masses_type
Type of container to store double values.
Definition: Weights.h:80
long unsigned int weight_type
Type of integer values to be used.
Definition: Weights.h:71
std::vector< weight_type > weights_type
Type of container to store integer values.
Definition: Weights.h:77
Weights()
Empty constructor.
Definition: Weights.h:86
weights_type::size_type size_type
Type of container's size.
Definition: Weights.h:83
alphabet_mass_type getPrecision() const
Definition: Weights.h:152
alphabet_mass_type getAlphabetMass(size_type i) const
Definition: Weights.h:186
std::ostream & operator<<(std::ostream &os, const IMSAlphabet &alphabet)
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48