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 () | |
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_ |
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.
|
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()(), MetaProSIPReporting::plotFilteredSpectra(), MzMLHandler< MapType >::writePrecursor_(), MzDataHandler< MapType >::writeTo(), and MzXMLHandler< MapType >::writeTo().
|
inline |
Non-mutable access to m/z.
Referenced by SimpleSearchEngine::deisotopeAndSingleChargeMSSpectrum(), DTA2DFile::load(), OfflinePrecursorIonSelection::makePrecursorSelectionForKnownLCMSMap(), Peak1D::MZLess::operator()(), MetaProSIPReporting::plotFilteredSpectra(), DTAFile::store(), MzMLHandler< MapType >::writePrecursor_(), MzDataHandler< MapType >::writeTo(), and MzXMLHandler< MapType >::writeTo().
|
inline |
Alias for getMZ()
|
inline |
Non-mutable access to the position.
Referenced by Peak1D::PositionLess::operator()().
|
inline |
Mutable access to the position.
Assignment operator.
References Peak1D::intensity_, and Peak1D::position_.
Referenced by RichPeak1D::operator=().
Equality operator.
References Peak1D::intensity_, and Peak1D::position_.
Referenced by RichPeak1D::operator==().
|
inline |
Mutable access to the data point intensity (height)
Referenced by SpectraMerger::averageCentroidSpectra_(), SpectraMerger::averageProfileSpectra_(), MetaProSIPDecomposition::calculateDecompositionWeightsIsotopicPatterns(), MzXMLHandler< MapType >::doPopulateSpectraWithData_(), MzDataHandler< MapType >::fillData_(), TOPPMetaProSIP::isotopicIntensitiesToSpectrum(), MS2File::load(), MascotInfile::load(), DTA2DFile::load(), OfflinePrecursorIonSelection::makePrecursorSelectionForKnownLCMSMap(), and EmgScoring::prepareFit_().
|
inline |
Mutable access to m/z.
Referenced by SpectraMerger::averageCentroidSpectra_(), SpectraMerger::averageProfileSpectra_(), MetaProSIPDecomposition::calculateDecompositionWeightsIsotopicPatterns(), SimpleSearchEngine::deisotopeAndSingleChargeMSSpectrum(), MzXMLHandler< MapType >::doPopulateSpectraWithData_(), MzDataHandler< MapType >::fillData_(), IDEvaluationBase::getPoints(), TOPPMetaProSIP::isotopicIntensitiesToSpectrum(), DTAFile::load(), DTA2DFile::load(), TOPPRNPxl::main_(), OfflinePrecursorIonSelection::makePrecursorSelectionForKnownLCMSMap(), EmgScoring::prepareFit_(), ChromatogramExtractor::prepareSpectra_(), ChromatogramExtractor::return_chromatogram(), and TOPPViewBase::showSpectrumGenerationDialog().
|
inline |
Alias for setMZ()
|
inline |
Mutable access to the position.
Referenced by MS2File::load(), MascotInfile::load(), MSSpectrum< RichPeak1D >::MZBegin(), and MSSpectrum< RichPeak1D >::MZEnd().
|
protected |
The data point intensity.
Referenced by Peak1D::operator=(), and Peak1D::operator==().
|
protected |
The data point position.
Referenced by Peak1D::operator=(), and Peak1D::operator==().
OpenMS / TOPP release 2.0.0 | Documentation generated on Thu Aug 20 2015 01:44:38 using doxygen 1.8.9.1 |