|
OpenMS
2.5.0
|
Go to the documentation of this file.
86 position_(p.position_),
87 intensity_(p.intensity_)
108 inline IntensityType getIntensity()
const {
return intensity_; }
161 if (
this == &rhs)
return *
this;
172 #pragma clang diagnostic push
173 #pragma clang diagnostic ignored "-Wfloat-equal"
175 #pragma clang diagnostic pop
188 struct IntensityLess :
191 std::binary_function<Peak1D, Peak1D, bool>
217 public std::binary_function<Peak1D, Peak1D, bool>
226 return left.
getMZ() < right;
231 return left < right.
getMZ();
243 public std::binary_function<Peak1D, Peak1D, bool>
276 OPENMS_DLLAPI std::ostream &
operator<<(std::ostream & os,
const Peak1D & point);
bool operator()(IntensityType left, IntensityType right) const
Definition: Peak1D.h:208
bool operator()(CoordinateType left, CoordinateType right) const
Definition: Peak1D.h:234
void setMZ(CoordinateType mz)
Mutable access to m/z.
Definition: Peak1D.h:121
Peak1D()
Definition: Peak1D.h:73
bool operator()(IntensityType left, Peak1D const &right) const
Definition: Peak1D.h:203
bool operator()(Peak1D const &left, Peak1D const &right) const
Definition: Peak1D.h:193
Peak1D(PositionType a, IntensityType b)
construct with position and intensity
Definition: Peak1D.h:79
void setIntensity(IntensityType intensity)
Mutable access to the data point intensity (height)
Definition: Peak1D.h:112
Comparator by position. As this class has dimension 1, this is basically an alias for MZLess.
Definition: Peak1D.h:242
bool operator==(const Peak1D &rhs) const
Equality operator.
Definition: Peak1D.h:170
Peak1D & operator=(const Peak1D &rhs)
Assignment operator.
Definition: Peak1D.h:159
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
DPosition< 1 > PositionType
Position type.
Definition: Peak1D.h:65
bool operator!=(const Peak1D &rhs) const
Equality operator.
Definition: Peak1D.h:179
PositionType & getPosition()
Mutable access to the position.
Definition: Peak1D.h:145
bool operator()(const Peak1D &left, const PositionType &right) const
Definition: Peak1D.h:250
double CoordinateType
Coordinate type.
Definition: Peak1D.h:67
bool operator()(CoordinateType left, Peak1D const &right) const
Definition: Peak1D.h:229
const PositionType & getPosition() const
Non-mutable access to the position.
Definition: Peak1D.h:139
Comparator by m/z position.
Definition: Peak1D.h:216
CoordinateType getMZ() const
Non-mutable access to m/z.
Definition: Peak1D.h:115
bool operator()(const PositionType &left, const PositionType &right) const
Definition: Peak1D.h:260
void setPosition(PositionType const &position)
Mutable access to the position.
Definition: Peak1D.h:151
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:54
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
bool operator()(const Peak1D &left, const Peak1D &right) const
Definition: Peak1D.h:219
float IntensityType
Intensity type.
Definition: Peak1D.h:63
PositionType position_
The data point position.
Definition: Peak1D.h:270
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
CoordinateType getPos() const
Alias for getMZ()
Definition: Peak1D.h:127
bool operator()(Peak1D const &left, CoordinateType right) const
Definition: Peak1D.h:224
bool operator()(Peak1D const &left, IntensityType right) const
Definition: Peak1D.h:198
bool operator()(const PositionType &left, const Peak1D &right) const
Definition: Peak1D.h:255
void setPos(CoordinateType pos)
Alias for setMZ()
Definition: Peak1D.h:133
Size< TNeedle >::Type position(const PatternAuxData< TNeedle > &dh)
Definition: AhoCorasickAmbiguous.h:561
IntensityType getIntensity() const
Definition: Peak1D.h:110
IntensityType intensity_
The data point intensity.
Definition: Peak1D.h:272
Peak1D(const Peak1D &p)
Copy constructor.
Definition: Peak1D.h:85
bool operator()(const Peak1D &left, const Peak1D &right) const
Definition: Peak1D.h:245