35 #ifndef OPENMS_CHEMISTRY_ISOTOPEDISTRIBUTION_ISOTOPEDISTRIBUTION_H 36 #define OPENMS_CHEMISTRY_ISOTOPEDISTRIBUTION_ISOTOPEDISTRIBUTION_H 92 enum Sorted {INTENSITY, MASS, UNDEFINED};
114 void set(const ContainerType & distribution);
116 void set(ContainerType && distribution);
119 const ContainerType & getContainer() const;
122 Peak1D::CoordinateType getMax() const;
125 Peak1D::CoordinateType getMin() const;
128 Peak1D getMostAbundant() const;
137 void resize(
UInt size);
140 void trimIntensities(
double cutoff);
143 void sortByIntensity();
162 void merge(
double resolution,
double min_prob);
172 void trimRight(
double cutoff);
182 void trimLeft(
double cutoff);
185 double averageMass() const;
223 distribution_.push_back(
Peak1D(mass, intensity));
229 Peak1D& operator[](
const Size& index){
return distribution_[index];}
238 void sort_(std::function<
bool(
const MassAbundance& p1,
const MassAbundance& p2)> sorter);
240 void transform_(std::function<
void(MassAbundance&)> lambda);
249 #endif // OPENMS_CHEMISTRY_ISOTOPEDISTRIBUTION_ISOTOPEDISTRIBUTION_H Sorted
Definition: IsotopeDistribution.h:92
ContainerType::iterator Iterator
Definition: IsotopeDistribution.h:82
ContainerType::reverse_iterator reverse_iterator
Definition: IsotopeDistribution.h:86
ReverseIterator rbegin()
Definition: IsotopeDistribution.h:213
Iterator end()
Definition: IsotopeDistribution.h:207
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Definition: IsotopeDistribution.h:72
ContainerType::iterator iterator
Definition: IsotopeDistribution.h:81
std::vector< MassAbundance > ContainerType
Definition: IsotopeDistribution.h:80
ReverseIterator rend()
Definition: IsotopeDistribution.h:215
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
ContainerType::reverse_iterator ReverseIterator
Definition: IsotopeDistribution.h:87
void insert(const Peak1D::CoordinateType &mass, const Peak1D::IntensityType &intensity)
Definition: IsotopeDistribution.h:221
ContainerType::const_reverse_iterator const_reverse_iterator
Definition: IsotopeDistribution.h:88
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:54
Iterator begin()
Definition: IsotopeDistribution.h:205
ConstReverseIterator rbegin() const
Definition: IsotopeDistribution.h:217
ConstReverseIterator rend() const
Definition: IsotopeDistribution.h:219
ContainerType::const_iterator const_iterator
Definition: IsotopeDistribution.h:83
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
ConstIterator begin() const
Definition: IsotopeDistribution.h:209
ContainerType distribution_
stores the isotope distribution
Definition: IsotopeDistribution.h:243
ConstIterator end() const
Definition: IsotopeDistribution.h:211
ContainerType::const_iterator ConstIterator
Definition: IsotopeDistribution.h:84
ContainerType::const_reverse_iterator ConstReverseIterator
Definition: IsotopeDistribution.h:89