![]()  | 
  
    OpenMS
    
     
   | 
  
A 2-dimensional raw data point or peak. More...
#include <OpenMS/KERNEL/Peak2D.h>
Classes | |
| struct | IntensityLess | 
| struct | MZLess | 
| Comparator by m/z position.  More... | |
| struct | PositionLess | 
| Comparator by position. Lexicographical comparison (first RT then m/z) is done.  More... | |
| struct | RTLess | 
| Comparator by RT position.  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 Peak2D &rhs) const | 
| Equality operator.  More... | |
| bool | operator!= (const Peak2D &rhs) const | 
| Equality operator.  More... | |
Constructors and Destructor  | |
Default constructor  | |
| Peak2D ()=default | |
| Peak2D (const PositionType &pos, const IntensityType in) | |
| Member constructor.  More... | |
| Peak2D (const Peak2D &p)=default | |
| Copy constructor.  More... | |
| Peak2D (Peak2D &&) noexcept=default | |
| Move constructor.  More... | |
| Peak2D & | operator= (const Peak2D &rhs)=default | 
| Assignment operator.  More... | |
| Peak2D & | operator= (Peak2D &&) noexcept=default | 
| Move assignment operator.  More... | |
| ~Peak2D () 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 | getRT () const | 
| Returns the RT coordinate (index 0)  More... | |
| void | setRT (CoordinateType coordinate) | 
| Mutable access to the RT 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 Peak2D &point) | 
| Print the contents to a stream.  More... | |
Dimension descriptions | |
| enum | DimensionDescription { RT = 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 * | shortDimensionNameRT () | 
| 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 * | fullDimensionNameRT () | 
| 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 * | shortDimensionUnitRT () | 
| 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 * | fullDimensionUnitRT () | 
| 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 RichPeak2D 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.
      
  | 
  defaultnoexcept | 
      
  | 
  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 | 
      
  | 
  inline | 
Returns the m/z coordinate (index 1)
References OpenMS::MZ.
Referenced by DimMZ::map(), SpectraMerger::SpectraDistance_::operator()(), and Peak2D::MZLess::operator()().
      
  | 
  inline | 
Mutable access to the position.
      
  | 
  inline | 
Non-mutable access to the position.
Referenced by Peak2D::PositionLess::operator()(), and InMzRange< PeakType >::operator()().
      
  | 
  inline | 
Returns the RT coordinate (index 0)
References OpenMS::RT.
Referenced by DimRT::map(), SpectraMerger::SpectraDistance_::operator()(), FeatureFinderAlgorithmMetaboIdent::FeatureCompare::operator()(), FeatureFinderIdentificationAlgorithm::FeatureCompare::operator()(), and Peak2D::RTLess::operator()().
      
  | 
  inline | 
Equality operator.
References OpenMS::Internal::operator==().
Assignment operator.
Referenced by RichPeak2D::operator=().
      
  | 
  inline | 
Equality operator.
References Peak2D::intensity_, and Peak2D::position_.
Referenced by RichPeak2D::operator==().
      
  | 
  inline | 
Sets data point intensity (height)
Referenced by MRMTransitionGroupPicker::createMRMFeature(), MsInspectFile::load(), SpecArrayFile::load(), MRMTransitionGroupPicker::pickFragmentChromatograms(), MRMTransitionGroupPicker::pickPrecursorChromatograms(), LinearResamplerAlign::populate_raster_(), and MRMTransitionGroup< ChromatogramType, TransitionType >::subset().
      
  | 
  inline | 
Mutable access to the m/z coordinate (index 1)
References OpenMS::MZ.
Referenced by MsInspectFile::load(), SpecArrayFile::load(), SpectraMerger::mergeSpectraPrecursors(), MRMTransitionGroupPicker::pickFragmentChromatograms(), and MRMTransitionGroupPicker::pickPrecursorChromatograms().
      
  | 
  inline | 
Mutable access to the position.
      
  | 
  inline | 
Mutable access to the RT coordinate (index 0)
References OpenMS::RT.
Referenced by ChromatogramTools::convertSpectraToChromatograms(), MRMTransitionGroupPicker::createMRMFeature(), MsInspectFile::load(), SpecArrayFile::load(), SpectraMerger::mergeSpectraPrecursors(), MRMTransitionGroupPicker::pickFragmentChromatograms(), MRMTransitionGroupPicker::pickPrecursorChromatograms(), and MRMTransitionGroup< ChromatogramType, TransitionType >::subset().
      
  | 
  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 Peak2D::operator==().
      
  | 
  protected | 
The data point position.
Referenced by Peak2D::operator==().