89 Peak1D::CoordinateType getMax() const;
92 Peak1D::CoordinateType getMin() const;
107 void trimIntensities(
double cutoff);
110 void sortByIntensity();
129 void merge(
double resolution,
double min_prob);
139 void trimRight(
double cutoff);
149 void trimLeft(
double cutoff);
152 double averageMass() const;
172 inline
Iterator begin() {
return distribution_.begin(); }
190 distribution_.push_back(
Peak1D(mass, intensity));
196 Peak1D& operator[](
const Size& index){
return distribution_[index];}
Definition: IsotopeDistribution.h:39
void sort_(std::function< bool(const MassAbundance &p1, const MassAbundance &p2)> sorter)
sort wrapper of the distribution
ContainerType::const_iterator ConstIterator
Definition: IsotopeDistribution.h:50
ConstReverseIterator rend() const
Definition: IsotopeDistribution.h:186
ContainerType::reverse_iterator ReverseIterator
Definition: IsotopeDistribution.h:53
ContainerType distribution_
stores the isotope distribution
Definition: IsotopeDistribution.h:211
ContainerType::reverse_iterator reverse_iterator
Definition: IsotopeDistribution.h:52
ContainerType::const_reverse_iterator ConstReverseIterator
Definition: IsotopeDistribution.h:55
ConstIterator end() const
Definition: IsotopeDistribution.h:178
ContainerType::iterator Iterator
Definition: IsotopeDistribution.h:48
ContainerType::iterator iterator
Definition: IsotopeDistribution.h:47
void transform_(std::function< void(MassAbundance &)> lambda)
takes a function as a parameter to transform the distribution
ConstReverseIterator rbegin() const
Definition: IsotopeDistribution.h:184
void insert(const Peak1D::CoordinateType &mass, const Peak1D::IntensityType &intensity)
Definition: IsotopeDistribution.h:188
ReverseIterator rend()
Definition: IsotopeDistribution.h:182
Iterator end()
Definition: IsotopeDistribution.h:174
std::vector< MassAbundance > ContainerType
Definition: IsotopeDistribution.h:46
const Peak1D & operator[](const Size &index) const
const operator to access a cell of the distribution and wraps it in SpectrumFragment struct
Definition: IsotopeDistribution.h:199
ContainerType::const_iterator const_iterator
Definition: IsotopeDistribution.h:49
ConstIterator begin() const
Definition: IsotopeDistribution.h:176
Sorted
Definition: IsotopeDistribution.h:58
@ INTENSITY
Definition: IsotopeDistribution.h:58
ReverseIterator rbegin()
Definition: IsotopeDistribution.h:180
ContainerType::const_reverse_iterator const_reverse_iterator
Definition: IsotopeDistribution.h:54
IsotopeDistribution(const IsotopeDistribution &)=default
Copy constructor.
IsotopeDistribution(IsotopeDistribution &&) noexcept=default
Move constructor.
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:28
double CoordinateType
Coordinate type.
Definition: Peak1D.h:40
float IntensityType
Intensity type.
Definition: Peak1D.h:36
unsigned int UInt
Unsigned integer type.
Definition: Types.h:68
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:101
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22