OpenMS
|
A 1-dimensional raw data point or peak. More...
#include <OpenMS/KERNEL/Peak1D.h>
Classes | |
struct | IntensityLess |
struct | MZLess |
Comparator by m/z position. More... | |
struct | PositionLess |
Comparator by position. As this class has dimension 1, this is basically an alias for MZLess. 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 Peak1D &rhs) const |
Equality operator. More... | |
bool | operator!= (const Peak1D &rhs) const |
Equality operator. More... | |
Constructors and Destructor | |
Default constructor | |
Peak1D ()=default | |
Peak1D (PositionType a, IntensityType b) | |
construct with position and intensity More... | |
Peak1D (const Peak1D &p)=default | |
Copy constructor. More... | |
Peak1D (Peak1D &&) noexcept=default | |
Peak1D & | operator= (const Peak1D &rhs)=default |
Assignment operator. More... | |
Peak1D & | operator= (Peak1D &&) noexcept=default |
Move assignment operator. More... | |
~Peak1D ()=default | |
Destructor. More... | |
Accessors | |
IntensityType | getIntensity () const |
void | setIntensity (IntensityType intensity) |
Mutable access to the data point intensity (height) More... | |
CoordinateType | getMZ () const |
Non-mutable access to m/z. More... | |
void | setMZ (CoordinateType mz) |
Mutable access to m/z. More... | |
CoordinateType | getPos () const |
Alias for getMZ() More... | |
void | setPos (CoordinateType pos) |
Alias for setMZ() 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 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 RichPeak1D instead.
using CoordinateType = double |
Coordinate type.
using IntensityType = float |
Intensity type.
using PositionType = DPosition<1> |
Position type.
|
inlinedefault |
|
inline |
construct with position and intensity
|
default |
|
inline |
Non-mutable access to the data point intensity (height)
Referenced by DTA2DFile::load(), DimINT::map(), and Peak1D::IntensityLess::operator()().
|
inline |
Non-mutable access to m/z.
Referenced by NucleicAcidSearchEngine::deisotopeAndSingleChargeMSSpectrum_(), DTA2DFile::load(), DimMZ::map(), Peak1D::MZLess::operator()(), TOPPViewBase::showCurrentPeaksAsDIA(), and DTAFile::store().
|
inline |
Alias for getMZ()
|
inline |
Mutable access to the position.
|
inline |
Non-mutable access to the position.
Referenced by Peak1D::PositionLess::operator()().
|
inline |
Equality operator.
References OpenMS::Internal::operator==().
|
inline |
Equality operator.
References Peak1D::intensity_, and Peak1D::position_.
|
inline |
Mutable access to the data point intensity (height)
Referenced by SpectraMerger::averageCentroidSpectra_(), SpectraMerger::averageProfileSpectra_(), DimINT::fromXY(), MascotGenericFile::getNextSpectrum_(), MascotInfile::load(), MS2File::load(), DTA2DFile::load(), XMassFile::load(), DTAFile::load(), PeakPickerIterative::pick(), PeakPickerSH::pick(), and EmgScoring::prepareFit_().
|
inline |
Mutable access to m/z.
Referenced by SpectraMerger::averageCentroidSpectra_(), SpectraMerger::averageProfileSpectra_(), NucleicAcidSearchEngine::deisotopeAndSingleChargeMSSpectrum_(), DimMZ::fromXY(), DTA2DFile::load(), DTAFile::load(), TOPPFLASHDeconv::main_(), PeakPickerIterative::pick(), PeakPickerSH::pick(), EmgScoring::prepareFit_(), ChromatogramExtractor::prepareSpectra_(), and ChromatogramExtractor::return_chromatogram().
|
inline |
Alias for setMZ()
|
inline |
Mutable access to the position.
Referenced by MascotGenericFile::getNextSpectrum_(), MascotInfile::load(), MS2File::load(), XMassFile::load(), and DTAFile::load().
|
protected |
The data point intensity.
Referenced by Peak1D::operator==().
|
protected |
The data point position.
Referenced by Peak1D::operator==().