89 static char const *
const dimension_name_short_[DIMENSION];
92 static char const *
const dimension_name_full_[DIMENSION];
95 static char const *
const dimension_unit_short_[DIMENSION];
98 static char const *
const dimension_unit_full_[DIMENSION];
147 intensity_ = intensity;
165 position_ = position;
171 return position_[
MZ];
177 position_[
MZ] = coordinate;
183 return position_[IM];
189 position_[IM] = coordinate;
270 return left.
getMZ() < right;
275 return left < right.
getMZ();
Representation of a coordinate in D-dimensional space.
Definition DPosition.h:32
A 2-dimensional raw data point or peak.
Definition MobilityPeak2D.h:30
friend std::ostream & operator<<(std::ostream &os, const MobilityPeak2D &point)
Print the contents to a stream.
CoordinateType getMZ() const
Returns the m/z coordinate (index 1)
Definition MobilityPeak2D.h:169
MobilityPeak2D(const PositionType &pos, const IntensityType in)
Member constructor.
Definition MobilityPeak2D.h:109
static char const * fullDimensionUnitIM()
Unit of measurement (self-explanatory form)
static char const * shortDimensionNameMZ()
Short name of the dimension (abbreviated form)
void setMZ(CoordinateType coordinate)
Mutable access to the m/z coordinate (index 1)
Definition MobilityPeak2D.h:175
void setMobility(CoordinateType coordinate)
Mutable access to the IM coordinate (index 0)
Definition MobilityPeak2D.h:187
static char const * fullDimensionNameMZ()
Full name of the dimension (self-explanatory form)
PositionType const & getPosition() const
Non-mutable access to the position.
Definition MobilityPeak2D.h:151
float IntensityType
Intensity type.
Definition MobilityPeak2D.h:36
double CoordinateType
Coordinate type (of the position)
Definition MobilityPeak2D.h:38
static char const * fullDimensionUnit(UInt const dim)
Unit of measurement (self-explanatory form)
PositionType position_
The data point position.
Definition MobilityPeak2D.h:313
static char const * shortDimensionUnit(UInt const dim)
Unit of measurement (abbreviated form)
bool operator==(const MobilityPeak2D &rhs) const
Equality operator.
Definition MobilityPeak2D.h:195
static char const * fullDimensionName(UInt const dim)
Full name of the dimension (self-explanatory form)
static char const * fullDimensionNameIM()
Full name of the dimension (self-explanatory form)
IntensityType getIntensity() const
Definition MobilityPeak2D.h:139
static char const * fullDimensionUnitMZ()
Unit of measurement (self-explanatory form)
static char const * shortDimensionUnitIM()
Unit of measurement (abbreviated form)
bool operator!=(const MobilityPeak2D &rhs) const
Equality operator.
Definition MobilityPeak2D.h:201
void setIntensity(IntensityType intensity)
Sets data point intensity (height)
Definition MobilityPeak2D.h:145
static char const * shortDimensionUnitMZ()
Unit of measurement (abbreviated form)
PositionType & getPosition()
Mutable access to the position.
Definition MobilityPeak2D.h:157
void setPosition(const PositionType &position)
Mutable access to the position.
Definition MobilityPeak2D.h:163
CoordinateType getMobility() const
Returns the IM coordinate (index 0)
Definition MobilityPeak2D.h:181
DimensionDescription
This enum maps the symbolic names of the dimensions to numbers.
Definition MobilityPeak2D.h:48
MobilityPeak2D(const MobilityPeak2D &p)=default
Copy constructor.
DPosition< 2 > PositionType
Position type.
Definition MobilityPeak2D.h:40
IntensityType intensity_
The data point intensity.
Definition MobilityPeak2D.h:315
static char const * shortDimensionNameIM()
Short name of the dimension (abbreviated form)
static char const * shortDimensionName(UInt const dim)
Short name of the dimension (abbreviated form)
MobilityPeak2D(MobilityPeak2D &&) noexcept=default
Move constructor.
unsigned int UInt
Unsigned integer type.
Definition Types.h:64
bool operator==(const IDBoostGraph::ProteinGroup &lhs, const IDBoostGraph::ProteinGroup &rhs)
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
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 hash_float(T value) noexcept
Hash for a floating point type (float or double).
Definition HashUtils.h:142
Comparator by IM position.
Definition MobilityPeak2D.h:238
bool operator()(CoordinateType left, CoordinateType right) const
Definition MobilityPeak2D.h:254
bool operator()(CoordinateType left, const MobilityPeak2D &right) const
Definition MobilityPeak2D.h:249
bool operator()(const MobilityPeak2D &left, CoordinateType right) const
Definition MobilityPeak2D.h:244
bool operator()(const MobilityPeak2D &left, const MobilityPeak2D &right) const
Definition MobilityPeak2D.h:239
Definition MobilityPeak2D.h:214
bool operator()(const MobilityPeak2D &left, IntensityType right) const
Definition MobilityPeak2D.h:220
bool operator()(IntensityType left, const MobilityPeak2D &right) const
Definition MobilityPeak2D.h:225
bool operator()(const MobilityPeak2D &left, const MobilityPeak2D &right) const
Definition MobilityPeak2D.h:215
bool operator()(IntensityType left, IntensityType right) const
Definition MobilityPeak2D.h:230
Comparator by m/z position.
Definition MobilityPeak2D.h:262
bool operator()(CoordinateType left, CoordinateType right) const
Definition MobilityPeak2D.h:278
bool operator()(CoordinateType left, const MobilityPeak2D &right) const
Definition MobilityPeak2D.h:273
bool operator()(const MobilityPeak2D &left, CoordinateType right) const
Definition MobilityPeak2D.h:268
bool operator()(const MobilityPeak2D &left, const MobilityPeak2D &right) const
Definition MobilityPeak2D.h:263
Comparator by position. Lexicographical comparison (first IM then m/z) is done.
Definition MobilityPeak2D.h:286
bool operator()(const PositionType &left, const PositionType &right) const
Definition MobilityPeak2D.h:302
bool operator()(const MobilityPeak2D &left, const PositionType &right) const
Definition MobilityPeak2D.h:292
bool operator()(const PositionType &left, const MobilityPeak2D &right) const
Definition MobilityPeak2D.h:297
bool operator()(const MobilityPeak2D &left, const MobilityPeak2D &right) const
Definition MobilityPeak2D.h:287
std::size_t operator()(const OpenMS::MobilityPeak2D &p) const noexcept
Definition MobilityPeak2D.h:328