133 void trimIntensities(
double cutoff);
136 void sortByIntensity();
155 void merge(
double resolution,
double min_prob);
165 void trimRight(
double cutoff);
175 void trimLeft(
double cutoff);
178 double averageMass() const;
198 inline
Iterator begin() {
return distribution_.begin(); }
216 distribution_.push_back(
Peak1D(mass, intensity));
222 Peak1D& operator[](
const Size& index){
return distribution_[index];}
Definition: IsotopeDistribution.h:65
void sort_(std::function< bool(const MassAbundance &p1, const MassAbundance &p2)> sorter)
sort wrapper of the distribution
ContainerType::const_iterator ConstIterator
Definition: IsotopeDistribution.h:76
ConstReverseIterator rend() const
Definition: IsotopeDistribution.h:212
ContainerType::reverse_iterator ReverseIterator
Definition: IsotopeDistribution.h:79
ContainerType distribution_
stores the isotope distribution
Definition: IsotopeDistribution.h:237
ContainerType::reverse_iterator reverse_iterator
Definition: IsotopeDistribution.h:78
ContainerType::const_reverse_iterator ConstReverseIterator
Definition: IsotopeDistribution.h:81
ConstIterator end() const
Definition: IsotopeDistribution.h:204
ContainerType::iterator Iterator
Definition: IsotopeDistribution.h:74
ContainerType::iterator iterator
Definition: IsotopeDistribution.h:73
void transform_(std::function< void(MassAbundance &)> lambda)
takes a function as a parameter to transform the distribution
ConstReverseIterator rbegin() const
Definition: IsotopeDistribution.h:210
void insert(const Peak1D::CoordinateType &mass, const Peak1D::IntensityType &intensity)
Definition: IsotopeDistribution.h:214
ReverseIterator rend()
Definition: IsotopeDistribution.h:208
Iterator end()
Definition: IsotopeDistribution.h:200
std::vector< MassAbundance > ContainerType
Definition: IsotopeDistribution.h:72
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:225
ContainerType::const_iterator const_iterator
Definition: IsotopeDistribution.h:75
ConstIterator begin() const
Definition: IsotopeDistribution.h:202
Sorted
Definition: IsotopeDistribution.h:84
@ INTENSITY
Definition: IsotopeDistribution.h:84
ReverseIterator rbegin()
Definition: IsotopeDistribution.h:206
ContainerType::const_reverse_iterator const_reverse_iterator
Definition: IsotopeDistribution.h:80
IsotopeDistribution(const IsotopeDistribution &)=default
Copy constructor.
IsotopeDistribution(IsotopeDistribution &&) noexcept=default
Move constructor.
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:54
float IntensityType
Intensity type.
Definition: Peak1D.h:62
double CoordinateType
Coordinate type.
Definition: Peak1D.h:66
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47