|
OpenMS
2.5.0
|
Go to the documentation of this file.
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();
145 void setPrecision(alphabet_mass_type precision);
177 return weights_.back();
188 return alphabet_masses_[i];
194 alphabet_mass_type getParentMass(
const std::vector<unsigned int> & decomposition)
const;
202 void swap(size_type index1, size_type index2);
218 alphabet_mass_type getMinRoundingError()
const;
220 alphabet_mass_type getMaxRoundingError()
const;
244 OPENMS_DLLAPI std::ostream &
operator<<(std::ostream & os,
const Weights & weights);
Weights(const Weights &other)
Definition: Weights.h:106
weight_type getWeight(size_type i) const
Definition: Weights.h:135
alphabet_mass_type getPrecision() const
Definition: Weights.h:152
alphabet_masses_type alphabet_masses_
Definition: Weights.h:225
alphabet_mass_type getAlphabetMass(size_type i) const
Definition: Weights.h:186
weights_type weights_
Definition: Weights.h:235
size_type size() const
Definition: Weights.h:124
std::vector< weight_type > weights_type
Type of container to store integer values.
Definition: Weights.h:77
weight_type operator[](size_type i) const
Definition: Weights.h:165
long unsigned int weight_type
Type of integer values to be used.
Definition: Weights.h:71
weights_type::size_type size_type
Type of container's size.
Definition: Weights.h:83
Represents a set of weights (double values and scaled with a certain precision their integer counterp...
Definition: Weights.h:67
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
Weights()
Empty constructor.
Definition: Weights.h:86
double alphabet_mass_type
Type of double values to be used.
Definition: Weights.h:74
Weights(const alphabet_masses_type &masses, alphabet_mass_type precision)
Definition: Weights.h:94
std::vector< alphabet_mass_type > alphabet_masses_type
Type of container to store double values.
Definition: Weights.h:80
alphabet_mass_type precision_
Definition: Weights.h:230
std::ostream & operator<<(std::ostream &os, const IMSAlphabet &alphabet)
weight_type back() const
Definition: Weights.h:175