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 Real | IntensityType |
Intensity type. More... | |
typedef DPosition< 1 > | PositionType |
Position type. More... | |
typedef DoubleReal | 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 (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 datastructure is intended for continuous data or peak data. If wou want to annotated single peaks with meta data, use RichPeak1D instead.
typedef DoubleReal CoordinateType |
Coordinate type.
typedef Real IntensityType |
Intensity type.
typedef DPosition<1> PositionType |
Position type.
|
inline |
|
inline |
|
inline |
Non-mutable access to the data point intensity (height)
Referenced by Peak1D::IntensityLess::operator()(), MzMLHandler< MapType >::writePrecursor_(), MzDataHandler< MapType >::writeTo(), and MzXMLHandler< MapType >::writeTo().
|
inline |
Non-mutable access to m/z.
Referenced by OfflinePrecursorIonSelection::makePrecursorSelectionForKnownLCMSMap(), Peak1D::MZLess::operator()(), 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.
|
inline |
Equality operator.
Assignment operator.
References Peak1D::intensity_, and Peak1D::position_.
Referenced by RichPeak1D::operator=().
|
inline |
Equality operator.
References Peak1D::intensity_, and Peak1D::position_.
Referenced by RichPeak1D::operator==().
|
inline |
Mutable access to the data point intensity (height)
Referenced by OfflinePrecursorIonSelection::makePrecursorSelectionForKnownLCMSMap(), EmgScoring::prepareFit_(), CachedmzML::readSpectrum_(), and FeatureFinderAlgorithmMRM< PeakType, FeatureType >::run().
|
inline |
Mutable access to m/z.
Referenced by IDEvaluationBase::getPoints(), DTAFile::load(), TOPPRNPxl::main_(), OfflinePrecursorIonSelection::makePrecursorSelectionForKnownLCMSMap(), EmgScoring::prepareFit_(), ChromatogramExtractor::prepareSpectra_(), CachedmzML::readSpectrum_(), FeatureFinderAlgorithmMRM< PeakType, FeatureType >::run(), and TOPPViewBase::showSpectrumGenerationDialog().
|
inline |
Alias for setMZ()
|
inline |
Mutable access to the position.
Referenced by 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 1.11.1 | Documentation generated on Thu Nov 14 2013 11:19:32 using doxygen 1.8.5 |