OpenMS
|
A 2-dimensional raw data point or peak. More...
#include <OpenMS/KERNEL/MobilityPeak2D.h>
Classes | |
struct | IMLess |
Comparator by IM position. More... | |
struct | IntensityLess |
struct | MZLess |
Comparator by m/z position. More... | |
struct | PositionLess |
Comparator by position. Lexicographical comparison (first IM then m/z) is done. More... | |
Public Types | |
Type definitions | |
typedef float | IntensityType |
Intensity type. More... | |
typedef double | CoordinateType |
Coordinate type (of the position) More... | |
typedef DPosition< 2 > | PositionType |
Position type. More... | |
Public Member Functions | |
bool | operator== (const MobilityPeak2D &rhs) const |
Equality operator. More... | |
bool | operator!= (const MobilityPeak2D &rhs) const |
Equality operator. More... | |
Constructors and Destructor | |
Default constructor | |
MobilityPeak2D ()=default | |
MobilityPeak2D (const PositionType &pos, const IntensityType in) | |
Member constructor. More... | |
MobilityPeak2D (const MobilityPeak2D &p)=default | |
Copy constructor. More... | |
MobilityPeak2D (MobilityPeak2D &&) noexcept=default | |
Move constructor. More... | |
MobilityPeak2D & | operator= (const MobilityPeak2D &rhs)=default |
Assignment operator. More... | |
MobilityPeak2D & | operator= (MobilityPeak2D &&) noexcept=default |
Move assignment operator. More... | |
~MobilityPeak2D () noexcept=default | |
Destructor. More... | |
Accessors | |
Non-mutable access to the data point intensity (height) | |
IntensityType | getIntensity () const |
void | setIntensity (IntensityType intensity) |
Sets data point intensity (height) More... | |
PositionType const & | getPosition () const |
Non-mutable access to the position. More... | |
PositionType & | getPosition () |
Mutable access to the position. More... | |
void | setPosition (const PositionType &position) |
Mutable access to the position. More... | |
CoordinateType | getMZ () const |
Returns the m/z coordinate (index 1) More... | |
void | setMZ (CoordinateType coordinate) |
Mutable access to the m/z coordinate (index 1) More... | |
CoordinateType | getMobility () const |
Returns the IM coordinate (index 0) More... | |
void | setMobility (CoordinateType coordinate) |
Mutable access to the IM coordinate (index 0) More... | |
Protected Attributes | |
PositionType | position_ {} |
The data point position. More... | |
IntensityType | intensity_ {} |
The data point intensity. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const MobilityPeak2D &point) |
Print the contents to a stream. More... | |
Dimension descriptions | |
enum | DimensionDescription { IM = 0 , MZ = 1 , DIMENSION = 2 } |
This enum maps the symbolic names of the dimensions to numbers. More... | |
static char const *const | dimension_name_short_ [DIMENSION] |
Short name of the dimension (abbreviated form) More... | |
static char const *const | dimension_name_full_ [DIMENSION] |
Full name of the dimension (self-explanatory form) More... | |
static char const *const | dimension_unit_short_ [DIMENSION] |
Unit of measurement (abbreviated form) More... | |
static char const *const | dimension_unit_full_ [DIMENSION] |
Unit of measurement (self-explanatory form) More... | |
static char const * | shortDimensionName (UInt const dim) |
Short name of the dimension (abbreviated form) More... | |
static char const * | shortDimensionNameIM () |
Short name of the dimension (abbreviated form) More... | |
static char const * | shortDimensionNameMZ () |
Short name of the dimension (abbreviated form) More... | |
static char const * | fullDimensionName (UInt const dim) |
Full name of the dimension (self-explanatory form) More... | |
static char const * | fullDimensionNameIM () |
Full name of the dimension (self-explanatory form) More... | |
static char const * | fullDimensionNameMZ () |
Full name of the dimension (self-explanatory form) More... | |
static char const * | shortDimensionUnit (UInt const dim) |
Unit of measurement (abbreviated form) More... | |
static char const * | shortDimensionUnitIM () |
Unit of measurement (abbreviated form) More... | |
static char const * | shortDimensionUnitMZ () |
Unit of measurement (abbreviated form) More... | |
static char const * | fullDimensionUnit (UInt const dim) |
Unit of measurement (self-explanatory form) More... | |
static char const * | fullDimensionUnitIM () |
Unit of measurement (self-explanatory form) More... | |
static char const * | fullDimensionUnitMZ () |
Unit of measurement (self-explanatory form) More... | |
A 2-dimensional raw data point or peak.
This data structure is intended for continuous data or peak data. If you want to annotated single peaks with meta data, use RichMobilityPeak2D instead.
typedef double CoordinateType |
Coordinate type (of the position)
typedef float IntensityType |
Intensity type.
typedef DPosition<2> PositionType |
Position type.
enum DimensionDescription |
|
default |
|
inlineexplicit |
Member constructor.
|
default |
Copy constructor.
|
defaultnoexcept |
Move constructor.
|
defaultnoexcept |
Destructor.
|
static |
Full name of the dimension (self-explanatory form)
|
static |
Full name of the dimension (self-explanatory form)
|
static |
Full name of the dimension (self-explanatory form)
|
static |
Unit of measurement (self-explanatory form)
|
static |
Unit of measurement (self-explanatory form)
|
static |
Unit of measurement (self-explanatory form)
|
inline |
Referenced by DimINT::map(), and MobilityPeak2D::IntensityLess::operator()().
|
inline |
Returns the IM coordinate (index 0)
References OpenMS::IM.
Referenced by DimIM::map(), and MobilityPeak2D::IMLess::operator()().
|
inline |
Returns the m/z coordinate (index 1)
References OpenMS::MZ.
Referenced by DimMZ::map(), and MobilityPeak2D::MZLess::operator()().
|
inline |
Mutable access to the position.
|
inline |
Non-mutable access to the position.
Referenced by MobilityPeak2D::PositionLess::operator()().
|
inline |
Equality operator.
References OpenMS::Internal::operator==().
|
default |
Assignment operator.
|
defaultnoexcept |
Move assignment operator.
|
inline |
Equality operator.
References MobilityPeak2D::intensity_, and MobilityPeak2D::position_.
|
inline |
Sets data point intensity (height)
Referenced by DimINT::fromXY().
|
inline |
|
inline |
Mutable access to the m/z coordinate (index 1)
References OpenMS::MZ.
Referenced by DimMZ::fromXY().
|
inline |
Mutable access to the position.
|
static |
Short name of the dimension (abbreviated form)
|
static |
Short name of the dimension (abbreviated form)
|
static |
Short name of the dimension (abbreviated form)
|
static |
Unit of measurement (abbreviated form)
|
static |
Unit of measurement (abbreviated form)
|
static |
Unit of measurement (abbreviated form)
|
friend |
Print the contents to a stream.
|
staticprotected |
Full name of the dimension (self-explanatory form)
|
staticprotected |
Short name of the dimension (abbreviated form)
|
staticprotected |
Unit of measurement (self-explanatory form)
|
staticprotected |
Unit of measurement (abbreviated form)
|
protected |
The data point intensity.
Referenced by MobilityPeak2D::operator==().
|
protected |
The data point position.
Referenced by MobilityPeak2D::operator==().