86 position_(p.position_),
87 intensity_(p.intensity_)
106 inline IntensityType getIntensity()
const {
return intensity_; }
159 if (
this == &rhs)
return *
this;
170 #pragma clang diagnostic push 171 #pragma clang diagnostic ignored "-Wfloat-equal" 173 #pragma clang diagnostic pop 186 struct IntensityLess :
189 std::binary_function<Peak1D, Peak1D, bool>
215 public std::binary_function<Peak1D, Peak1D, bool>
224 return left.
getMZ() < right;
229 return left < right.
getMZ();
241 public std::binary_function<Peak1D, Peak1D, bool>
274 OPENMS_DLLAPI std::ostream &
operator<<(std::ostream & os,
const Peak1D & point);
Peak1D & operator=(const Peak1D &rhs)
Assignment operator.
Definition: Peak1D.h:157
bool operator()(Peak1D const &left, IntensityType right) const
Definition: Peak1D.h:196
bool operator()(Peak1D const &left, CoordinateType right) const
Definition: Peak1D.h:222
PositionType & getPosition()
Mutable access to the position.
Definition: Peak1D.h:143
Size< TNeedle >::Type position(const PatternAuxData< TNeedle > &dh)
Definition: AhoCorasickAmbiguous.h:561
CoordinateType getMZ() const
Non-mutable access to m/z.
Definition: Peak1D.h:113
bool operator()(const Peak1D &left, const PositionType &right) const
Definition: Peak1D.h:248
bool operator()(const Peak1D &left, const Peak1D &right) const
Definition: Peak1D.h:217
PositionType const & getPosition() const
Non-mutable access to the position.
Definition: Peak1D.h:137
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
bool operator()(IntensityType left, IntensityType right) const
Definition: Peak1D.h:206
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
bool operator==(const Peak1D &rhs) const
Equality operator.
Definition: Peak1D.h:168
void setMZ(CoordinateType mz)
Mutable access to m/z.
Definition: Peak1D.h:119
void setIntensity(IntensityType intensity)
Mutable access to the data point intensity (height)
Definition: Peak1D.h:110
bool operator!=(const Peak1D &rhs) const
Equality operator.
Definition: Peak1D.h:177
Comparator by position. As this class has dimension 1, this is basically an alias for MZLess...
Definition: Peak1D.h:240
bool operator()(const PositionType &left, const Peak1D &right) const
Definition: Peak1D.h:253
bool operator()(const PositionType &left, const PositionType &right) const
Definition: Peak1D.h:258
Peak1D()
Definition: Peak1D.h:73
double CoordinateType
Coordinate type.
Definition: Peak1D.h:67
bool operator()(Peak1D const &left, Peak1D const &right) const
Definition: Peak1D.h:191
PositionType position_
The data point position.
Definition: Peak1D.h:268
void setPosition(PositionType const &position)
Mutable access to the position.
Definition: Peak1D.h:149
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:54
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
CoordinateType getPos() const
Alias for getMZ()
Definition: Peak1D.h:125
Peak1D(const Peak1D &p)
Copy constructor.
Definition: Peak1D.h:85
Comparator by m/z position.
Definition: Peak1D.h:214
bool operator()(const Peak1D &left, const Peak1D &right) const
Definition: Peak1D.h:243
bool operator()(CoordinateType left, CoordinateType right) const
Definition: Peak1D.h:232
Peak1D(PositionType a, IntensityType b)
construct with position and intensity
Definition: Peak1D.h:79
bool operator()(CoordinateType left, Peak1D const &right) const
Definition: Peak1D.h:227
float IntensityType
Intensity type.
Definition: Peak1D.h:63
IntensityType intensity_
The data point intensity.
Definition: Peak1D.h:270
void setPos(CoordinateType pos)
Alias for setMZ()
Definition: Peak1D.h:131
bool operator()(IntensityType left, Peak1D const &right) const
Definition: Peak1D.h:201
DPosition< 1 > PositionType
Position type.
Definition: Peak1D.h:65
IntensityType getIntensity() const
Definition: Peak1D.h:108
~Peak1D()
Destructor.
Definition: Peak1D.h:98