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];
147 position_(p.position_),
148 intensity_(p.intensity_)
174 intensity_ = intensity;
198 return position_[MZ];
204 position_[MZ] = coordinate;
210 return position_[RT];
216 position_[RT] = coordinate;
224 if (
this == &rhs)
return *
this;
235 #pragma clang diagnostic push 236 #pragma clang diagnostic ignored "-Wfloat-equal" 238 #pragma clang diagnostic pop 252 struct IntensityLess :
255 std::binary_function<Peak2D, Peak2D, bool>
281 std::binary_function<Peak2D, Peak2D, bool>
290 return left.
getRT() < right;
295 return left < right.
getRT();
307 std::binary_function<Peak2D, Peak2D, bool>
316 return left.
getMZ() < right;
321 return left < right.
getMZ();
333 public std::binary_function<Peak2D, Peak2D, bool>
358 friend OPENMS_DLLAPI std::ostream &
operator<<(std::ostream & os,
const Peak2D & point);
369 OPENMS_DLLAPI std::ostream &
operator<<(std::ostream & os,
const Peak2D & point);
Peak2D(const PositionType &pos, const IntensityType in)
Member constructor.
Definition: Peak2D.h:140
bool operator()(const Peak2D &left, const Peak2D &right) const
Definition: Peak2D.h:309
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:202
DPosition< 2 > PositionType
Position type.
Definition: Peak2D.h:66
Size< TNeedle >::Type position(const PatternAuxData< TNeedle > &dh)
Definition: AhoCorasickAmbiguous.h:561
bool operator()(CoordinateType left, const Peak2D &right) const
Definition: Peak2D.h:319
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
bool operator()(IntensityType left, const Peak2D &right) const
Definition: Peak2D.h:267
bool operator()(const Peak2D &left, const Peak2D &right) const
Definition: Peak2D.h:257
bool operator()(const Peak2D &left, CoordinateType right) const
Definition: Peak2D.h:288
Peak2D & operator=(const Peak2D &rhs)
Assignment operator.
Definition: Peak2D.h:222
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
double CoordinateType
Coordinate type (of the position)
Definition: Peak2D.h:64
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
IntensityType getIntensity() const
Definition: Peak2D.h:166
bool operator()(const PositionType &left, const PositionType &right) const
Definition: Peak2D.h:350
void setIntensity(IntensityType intensity)
Non-mutable access to the data point intensity (height)
Definition: Peak2D.h:172
Peak2D()
Definition: Peak2D.h:134
Comparator by position. Lexicographical comparison (first RT then m/z) is done.
Definition: Peak2D.h:332
PositionType position_
The data point position.
Definition: Peak2D.h:363
bool operator()(const Peak2D &left, const Peak2D &right) const
Definition: Peak2D.h:335
void setRT(CoordinateType coordinate)
Mutable access to the RT coordinate (index 0)
Definition: Peak2D.h:214
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:272
CoordinateType getMZ() const
Returns the m/z coordinate (index 1)
Definition: Peak2D.h:196
bool operator!=(const Peak2D &rhs) const
Equality operator.
Definition: Peak2D.h:242
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
Peak2D(const Peak2D &p)
Copy constructor.
Definition: Peak2D.h:146
void setPosition(const PositionType &position)
Mutable access to the position.
Definition: Peak2D.h:190
float IntensityType
Intensity type.
Definition: Peak2D.h:62
bool operator()(CoordinateType left, CoordinateType right) const
Definition: Peak2D.h:324
~Peak2D()
Destructor.
Definition: Peak2D.h:159
Comparator by RT position.
Definition: Peak2D.h:280
CoordinateType getRT() const
Returns the RT coordinate (index 0)
Definition: Peak2D.h:208
bool operator()(const Peak2D &left, CoordinateType right) const
Definition: Peak2D.h:314
PositionType & getPosition()
Mutable access to the position.
Definition: Peak2D.h:184
bool operator()(CoordinateType left, const Peak2D &right) const
Definition: Peak2D.h:293
PositionType const & getPosition() const
Non-mutable access to the position.
Definition: Peak2D.h:178
bool operator()(const Peak2D &left, const Peak2D &right) const
Definition: Peak2D.h:283
bool operator()(const Peak2D &left, IntensityType right) const
Definition: Peak2D.h:262
bool operator()(const Peak2D &left, const PositionType &right) const
Definition: Peak2D.h:340
bool operator()(CoordinateType left, CoordinateType right) const
Definition: Peak2D.h:298
IntensityType intensity_
The data point intensity.
Definition: Peak2D.h:365
Comparator by m/z position.
Definition: Peak2D.h:306
bool operator()(const PositionType &left, const Peak2D &right) const
Definition: Peak2D.h:345
bool operator==(const Peak2D &rhs) const
Equality operator.
Definition: Peak2D.h:233