OpenMS
|
A 1-dimensional raw data mobility point or peak. The unit (ms, 1/K_0, etc) is implicit. More...
#include <OpenMS/KERNEL/MobilityPeak1D.h>
Classes | |
struct | IntensityLess |
struct | MobilityLess |
Comparator by mobility position. More... | |
struct | PositionLess |
Comparator by position. As this class has dimension 1, this is basically an alias for MobilityLess. More... | |
Public Types | |
Type definitions | |
Dimension | |
enum | { DIMENSION = 1 } |
using | IntensityType = float |
Intensity type. More... | |
using | PositionType = DPosition< 1 > |
Position type. More... | |
using | CoordinateType = double |
Coordinate type. More... | |
Public Member Functions | |
bool | operator== (const MobilityPeak1D &rhs) const |
Equality operator. More... | |
bool | operator!= (const MobilityPeak1D &rhs) const |
Equality operator. More... | |
Constructors and Destructor | |
Default constructor | |
MobilityPeak1D ()=default | |
MobilityPeak1D (PositionType a, IntensityType b) | |
construct with position and intensity More... | |
MobilityPeak1D (const MobilityPeak1D &p)=default | |
Copy constructor. More... | |
MobilityPeak1D (MobilityPeak1D &&) noexcept=default | |
MobilityPeak1D & | operator= (const MobilityPeak1D &rhs)=default |
Assignment operator. More... | |
MobilityPeak1D & | operator= (MobilityPeak1D &&) noexcept=default |
Move assignment operator. More... | |
~MobilityPeak1D () noexcept=default | |
Destructor. More... | |
Accessors | |
IntensityType | getIntensity () const |
void | setIntensity (IntensityType intensity) |
Mutable access to the data point intensity (height) More... | |
CoordinateType | getMobility () const |
Non-mutable access to m/z. More... | |
void | setMobility (CoordinateType mobility) |
Mutable access to mobility. More... | |
CoordinateType | getPos () const |
Alias for getMobility() More... | |
void | setPos (CoordinateType pos) |
Alias for setMobility() More... | |
PositionType const & | getPosition () const |
Non-mutable access to the position. More... | |
PositionType & | getPosition () |
Mutable access to the position. More... | |
void | setPosition (PositionType const &position) |
Mutable access to the position. More... | |
Protected Attributes | |
PositionType | position_ {} |
The data point position. More... | |
IntensityType | intensity_ = 0.0 |
The data point intensity. More... | |
A 1-dimensional raw data mobility point or peak. The unit (ms, 1/K_0, etc) is implicit.
This data structure is intended for continuous mobility data or centroided mobility data.
using CoordinateType = double |
Coordinate type.
using IntensityType = float |
Intensity type.
using PositionType = DPosition<1> |
Position type.
|
default |
|
inline |
construct with position and intensity
|
default |
Copy constructor.
|
defaultnoexcept |
|
defaultnoexcept |
Destructor.
|
inline |
Non-mutable access to the data point intensity (height)
Referenced by DimINT::map(), and MobilityPeak1D::IntensityLess::operator()().
|
inline |
Non-mutable access to m/z.
Referenced by DimIM::map(), and MobilityPeak1D::MobilityLess::operator()().
|
inline |
Alias for getMobility()
|
inline |
Mutable access to the position.
|
inline |
Non-mutable access to the position.
Referenced by MobilityPeak1D::PositionLess::operator()().
|
inline |
Equality operator.
References OpenMS::Internal::operator==().
|
default |
Assignment operator.
|
defaultnoexcept |
Move assignment operator.
|
inline |
Equality operator.
References MobilityPeak1D::intensity_, and MobilityPeak1D::position_.
|
inline |
Mutable access to the data point intensity (height)
Referenced by DimINT::fromXY().
|
inline |
Mutable access to mobility.
Referenced by DimIM::fromXY().
|
inline |
Alias for setMobility()
|
inline |
Mutable access to the position.
|
protected |
The data point intensity.
Referenced by MobilityPeak1D::operator==().
|
protected |
The data point position.
Referenced by MobilityPeak1D::operator==().