90 Peak1D::CoordinateType getMax() const;
93 Peak1D::CoordinateType getMin() const;
108 void trimIntensities(
double cutoff);
111 void sortByIntensity();
130 void merge(
double resolution,
double min_prob);
140 void trimRight(
double cutoff);
150 void trimLeft(
double cutoff);
153 double averageMass() const;
173 inline
Iterator begin() {
return distribution_.begin(); }
191 distribution_.push_back(
Peak1D(mass, intensity));
227 for (
const auto& peak : id)
Definition IsotopeDistribution.h:40
void sort_(std::function< bool(const MassAbundance &p1, const MassAbundance &p2)> sorter)
sort wrapper of the distribution
ContainerType::const_iterator ConstIterator
Definition IsotopeDistribution.h:51
ConstReverseIterator rend() const
Definition IsotopeDistribution.h:187
ContainerType::reverse_iterator ReverseIterator
Definition IsotopeDistribution.h:54
ContainerType distribution_
stores the isotope distribution
Definition IsotopeDistribution.h:212
ContainerType::reverse_iterator reverse_iterator
Definition IsotopeDistribution.h:53
ContainerType::const_reverse_iterator ConstReverseIterator
Definition IsotopeDistribution.h:56
ConstIterator end() const
Definition IsotopeDistribution.h:179
ContainerType::iterator Iterator
Definition IsotopeDistribution.h:49
ContainerType::iterator iterator
Definition IsotopeDistribution.h:48
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:200
void transform_(std::function< void(MassAbundance &)> lambda)
takes a function as a parameter to transform the distribution
Peak1D MassAbundance
container type, first holds the weight of the isotope, second the probability
Definition IsotopeDistribution.h:46
ConstReverseIterator rbegin() const
Definition IsotopeDistribution.h:185
void insert(const Peak1D::CoordinateType &mass, const Peak1D::IntensityType &intensity)
Definition IsotopeDistribution.h:189
ReverseIterator rend()
Definition IsotopeDistribution.h:183
Iterator end()
Definition IsotopeDistribution.h:175
std::vector< MassAbundance > ContainerType
Definition IsotopeDistribution.h:47
ContainerType::const_iterator const_iterator
Definition IsotopeDistribution.h:50
ConstIterator begin() const
Definition IsotopeDistribution.h:177
Sorted
Definition IsotopeDistribution.h:59
@ INTENSITY
Definition IsotopeDistribution.h:59
Peak1D & operator[](const Size &index)
operator to access a cell of the distribution and wraps it in SpectrumFragment struct
Definition IsotopeDistribution.h:198
ReverseIterator rbegin()
Definition IsotopeDistribution.h:181
ContainerType::const_reverse_iterator const_reverse_iterator
Definition IsotopeDistribution.h:55
IsotopeDistribution(const IsotopeDistribution &)=default
Copy constructor.
IsotopeDistribution(IsotopeDistribution &&) noexcept=default
Move constructor.
A 1-dimensional raw data point or peak.
Definition Peak1D.h:30
double CoordinateType
Coordinate type.
Definition Peak1D.h:42
float IntensityType
Intensity type.
Definition Peak1D.h:38
unsigned int UInt
Unsigned integer type.
Definition Types.h:64
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
std::size_t hash_int(T value) noexcept
Hash for an integer type.
Definition HashUtils.h:107
void hash_combine(std::size_t &seed, std::size_t value) noexcept
Combine a hash value with additional data using golden ratio mixing.
Definition HashUtils.h:87
std::size_t operator()(const OpenMS::IsotopeDistribution &id) const noexcept
Definition IsotopeDistribution.h:224