35 #ifndef OPENMS_CHEMISTRY_ISOTOPEDISTRIBUTION_ISOTOPEDISTRIBUTION_H 36 #define OPENMS_CHEMISTRY_ISOTOPEDISTRIBUTION_ISOTOPEDISTRIBUTION_H 93 enum Sorted {INTENSITY, MASS, UNDEFINED};
113 void set(
const ContainerType & distribution);
116 const ContainerType & getContainer()
const;
125 Peak1D getMostAbundant()
const;
134 void resize(
UInt size);
137 void trimIntensities(
double cutoff);
140 void sortByIntensity();
159 void merge(
double resolution,
double min_prob);
170 void trimRight(
double cutoff);
180 void trimLeft(
double cutoff);
184 bool isNormalized()
const;
187 double averageMass()
const;
189 bool isConvolutionUnit()
const;
227 distribution_.push_back(
Peak1D(mass, intensity));
233 Peak1D& operator[](
const Size& index){
return distribution_[index];}
242 void sort_(std::function<
bool(
const MassAbundance& p1,
const MassAbundance& p2)> sorter);
244 void transform_(std::function<
void(MassAbundance&)> lambda);
253 #endif // OPENMS_CHEMISTRY_ISOTOPEDISTRIBUTION_ISOTOPEDISTRIBUTION_H Sorted
Definition: IsotopeDistribution.h:93
ContainerType::iterator Iterator
Definition: IsotopeDistribution.h:82
ContainerType::reverse_iterator reverse_iterator
Definition: IsotopeDistribution.h:86
ReverseIterator rbegin()
Definition: IsotopeDistribution.h:217
Iterator end()
Definition: IsotopeDistribution.h:211
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Definition: IsotopeDistribution.h:72
ContainerType::iterator iterator
Definition: IsotopeDistribution.h:81
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
std::vector< MassAbundance > ContainerType
Definition: IsotopeDistribution.h:80
ReverseIterator rend()
Definition: IsotopeDistribution.h:219
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
bool operator<(const MultiplexDeltaMasses &dm1, const MultiplexDeltaMasses &dm2)
ContainerType::reverse_iterator ReverseIterator
Definition: IsotopeDistribution.h:87
void insert(const Peak1D::CoordinateType &mass, const Peak1D::IntensityType &intensity)
Definition: IsotopeDistribution.h:225
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:209
ConstReverseIterator rbegin() const
Definition: IsotopeDistribution.h:221
ConstReverseIterator rend() const
Definition: IsotopeDistribution.h:223
ContainerType::const_iterator const_iterator
Definition: IsotopeDistribution.h:83
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
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:213
ContainerType distribution_
stores the isotope distribution
Definition: IsotopeDistribution.h:247
ConstIterator end() const
Definition: IsotopeDistribution.h:215
ContainerType::const_iterator ConstIterator
Definition: IsotopeDistribution.h:84
ContainerType::const_reverse_iterator ConstReverseIterator
Definition: IsotopeDistribution.h:89