81 static char const * shortDimensionName(
UInt const dim);
83 static char const * shortDimensionNameRT();
85 static char const * shortDimensionNameMZ();
88 static char const * fullDimensionName(
UInt const dim);
90 static char const * fullDimensionNameRT();
92 static char const * fullDimensionNameMZ();
95 static char const * shortDimensionUnit(
UInt const dim);
97 static char const * shortDimensionUnitRT();
99 static char const * shortDimensionUnitMZ();
102 static char const * fullDimensionUnit(
UInt const dim);
104 static char const * fullDimensionUnitRT();
106 static char const * fullDimensionUnitMZ();
116 static char const *
const dimension_name_short_[DIMENSION];
119 static char const *
const dimension_name_full_[DIMENSION];
122 static char const *
const dimension_unit_short_[DIMENSION];
125 static char const *
const dimension_unit_full_[DIMENSION];
161 ~
Peak2D() noexcept = default;
176 intensity_ = intensity;
194 position_ = position;
200 return position_[
MZ];
206 position_[
MZ] = coordinate;
212 return position_[
RT];
218 position_[
RT] = coordinate;
226 #pragma clang diagnostic push 227 #pragma clang diagnostic ignored "-Wfloat-equal" 229 #pragma clang diagnostic pop 279 return left.
getRT() < right;
284 return left < right.
getRT();
304 return left.
getMZ() < right;
309 return left < right.
getMZ();
345 friend OPENMS_DLLAPI std::ostream &
operator<<(std::ostream & os,
const Peak2D & point);
356 OPENMS_DLLAPI std::ostream &
operator<<(std::ostream & os,
const Peak2D & point);
Peak2D(const PositionType &pos, const IntensityType in)
Member constructor.
Definition: Peak2D.h:137
bool operator()(const Peak2D &left, const Peak2D &right) const
Definition: Peak2D.h:297
A 2-dimensional raw data point or peak.
Definition: Peak2D.h:54
void setMZ(CoordinateType coordinate)
Mutable access to the m/z coordinate (index 1)
Definition: Peak2D.h:204
DPosition< 2 > PositionType
Position type.
Definition: Peak2D.h:66
bool operator()(CoordinateType left, const Peak2D &right) const
Definition: Peak2D.h:307
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
bool operator()(IntensityType left, const Peak2D &right) const
Definition: Peak2D.h:257
bool operator()(const Peak2D &left, const Peak2D &right) const
Definition: Peak2D.h:247
bool operator()(const Peak2D &left, CoordinateType right) const
Definition: Peak2D.h:277
bool operator==(const IDBoostGraph::ProteinGroup &lhs, const IDBoostGraph::ProteinGroup &rhs)
double CoordinateType
Coordinate type (of the position)
Definition: Peak2D.h:64
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
IntensityType getIntensity() const
Definition: Peak2D.h:168
bool operator()(const PositionType &left, const PositionType &right) const
Definition: Peak2D.h:337
void setIntensity(IntensityType intensity)
Sets data point intensity (height)
Definition: Peak2D.h:174
Comparator by position. Lexicographical comparison (first RT then m/z) is done.
Definition: Peak2D.h:320
PositionType position_
The data point position.
Definition: Peak2D.h:350
bool operator()(const Peak2D &left, const Peak2D &right) const
Definition: Peak2D.h:322
void setRT(CoordinateType coordinate)
Mutable access to the RT coordinate (index 0)
Definition: Peak2D.h:216
DimensionDescription
This enum maps the symbolic names of the dimensions to numbers.
Definition: Peak2D.h:73
bool operator()(IntensityType left, IntensityType right) const
Definition: Peak2D.h:262
CoordinateType getMZ() const
Returns the m/z coordinate (index 1)
Definition: Peak2D.h:198
bool operator!=(const Peak2D &rhs) const
Equality operator.
Definition: Peak2D.h:233
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
void setPosition(const PositionType &position)
Mutable access to the position.
Definition: Peak2D.h:192
float IntensityType
Intensity type.
Definition: Peak2D.h:62
bool operator()(CoordinateType left, CoordinateType right) const
Definition: Peak2D.h:312
Comparator by RT position.
Definition: Peak2D.h:270
CoordinateType getRT() const
Returns the RT coordinate (index 0)
Definition: Peak2D.h:210
bool operator()(const Peak2D &left, CoordinateType right) const
Definition: Peak2D.h:302
PositionType & getPosition()
Mutable access to the position.
Definition: Peak2D.h:186
bool operator()(CoordinateType left, const Peak2D &right) const
Definition: Peak2D.h:282
PositionType const & getPosition() const
Non-mutable access to the position.
Definition: Peak2D.h:180
bool operator()(const Peak2D &left, const Peak2D &right) const
Definition: Peak2D.h:272
bool operator()(const Peak2D &left, IntensityType right) const
Definition: Peak2D.h:252
bool operator()(const Peak2D &left, const PositionType &right) const
Definition: Peak2D.h:327
bool operator()(CoordinateType left, CoordinateType right) const
Definition: Peak2D.h:287
IntensityType intensity_
The data point intensity.
Definition: Peak2D.h:352
Comparator by m/z position.
Definition: Peak2D.h:295
bool operator()(const PositionType &left, const Peak2D &right) const
Definition: Peak2D.h:332
bool operator==(const Peak2D &rhs) const
Equality operator.
Definition: Peak2D.h:224