![]() |
OpenMS
2.5.0
|
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 } |
| typedef float | IntensityType |
| Intensity type. More... | |
| typedef DPosition< 1 > | PositionType |
| Position type. More... | |
| typedef double | CoordinateType |
| Coordinate type. More... | |
Public Member Functions | |
| Peak1D & | operator= (const Peak1D &rhs) |
| Assignment operator. More... | |
| bool | operator== (const Peak1D &rhs) const |
| Equality operator. More... | |
| bool | operator!= (const Peak1D &rhs) const |
| Equality operator. More... | |
Constructors and Destructor | |
Default constructor | |
| Peak1D () | |
| Peak1D (PositionType a, IntensityType b) | |
| construct with position and intensity More... | |
| Peak1D (const Peak1D &p) | |
| Copy constructor. More... | |
| Peak1D (Peak1D &&) noexcept=default | |
| ~Peak1D () | |
| 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... | |
| const PositionType & | 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_ |
| 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.
| typedef double CoordinateType |
Coordinate type.
| typedef float IntensityType |
Intensity type.
| typedef DPosition<1> PositionType |
Position type.
|
inline |
|
inline |
construct with position and intensity
|
inline |
|
inline |
Non-mutable access to the data point intensity (height)
Referenced by DTA2DFile::load(), Peak1D::IntensityLess::operator()(), and MetaProSIPReporting::plotFilteredSpectra().
|
inline |
Non-mutable access to m/z.
Referenced by NucleicAcidSearchEngine::deisotopeAndSingleChargeMSSpectrum_(), DTA2DFile::load(), TOPPGNPSExport::main_(), Peak1D::MZLess::operator()(), MetaProSIPReporting::plotFilteredSpectra(), 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 KDTree::operator==().
Assignment operator.
References Peak1D::intensity_, and Peak1D::position_.
|
inline |
Equality operator.
References Peak1D::intensity_, and Peak1D::position_.
|
inline |
Mutable access to the data point intensity (height)
Referenced by SpectraMerger::averageCentroidSpectra_(), SpectraMerger::averageProfileSpectra_(), MetaProSIPDecomposition::calculateDecompositionWeightsIsotopicPatterns(), MascotGenericFile::getNextSpectrum_(), MS2File::load(), DTAFile::load(), MascotInfile::load(), XMassFile::load(), DTA2DFile::load(), PeakPickerSH::pick(), PeakPickerIterative::pick(), and EmgScoring::prepareFit_().
|
inline |
Mutable access to m/z.
Referenced by SpectraMerger::averageCentroidSpectra_(), SpectraMerger::averageProfileSpectra_(), MetaProSIPDecomposition::calculateDecompositionWeightsIsotopicPatterns(), NucleicAcidSearchEngine::deisotopeAndSingleChargeMSSpectrum_(), DTAFile::load(), DTA2DFile::load(), PeakPickerSH::pick(), PeakPickerIterative::pick(), EmgScoring::prepareFit_(), ChromatogramExtractor::prepareSpectra_(), ChromatogramExtractor::return_chromatogram(), and TOPPViewBase::showSpectrumGenerationDialog().
|
inline |
Alias for setMZ()
|
inline |
Mutable access to the position.
References seqan::position().
Referenced by MascotGenericFile::getNextSpectrum_(), MS2File::load(), DTAFile::load(), MascotInfile::load(), and XMassFile::load().
|
protected |
The data point intensity.
Referenced by Peak1D::operator=(), and Peak1D::operator==().
|
protected |
The data point position.
Referenced by Peak1D::operator=(), and Peak1D::operator==().
1.8.16