#include <BALL/NMR/spectrum.h>
Public Types | |
typedef DataT | DataType |
The datatype used to store the spectrum. | |
typedef PositionT | PositionType |
the data type used to store a position (for peaks and data) | |
typedef PeakT | PeakType |
The peak type. | |
typedef DataT::Iterator | Iterator |
An iterator. | |
typedef DataT::ConstIterator | ConstIterator |
A constant iterator. | |
Public Member Functions | |
virtual void | clear () |
virtual double | difference (const Spectrum< DataT, PeakT, PositionT > &spectrum) const |
virtual void | setSpacing (const PositionType &spacing) |
virtual PositionType | getSpacing () const |
Spectrum () | |
virtual | ~Spectrum () |
Accessors | |
const DataType & | getData () const |
DataType & | getData () |
Protected Attributes | |
DataType | data_ |
PositionType | spacing_ |
PositionType | min_ |
PositionType | max_ |
A generic NMR spectrum class.
typedef DataT::ConstIterator BALL::Spectrum< DataT, PeakT, PositionT >::ConstIterator |
A constant iterator.
typedef DataT BALL::Spectrum< DataT, PeakT, PositionT >::DataType |
The datatype used to store the spectrum.
Typedefs
typedef DataT::Iterator BALL::Spectrum< DataT, PeakT, PositionT >::Iterator |
An iterator.
typedef PeakT BALL::Spectrum< DataT, PeakT, PositionT >::PeakType |
The peak type.
typedef PositionT BALL::Spectrum< DataT, PeakT, PositionT >::PositionType |
the data type used to store a position (for peaks and data)
BALL::Spectrum< DataT, PeakT, PositionT >::Spectrum | ( | ) | [inline] |
Constructors and Destructor
virtual BALL::Spectrum< DataT, PeakT, PositionT >::~Spectrum | ( | ) | [inline, virtual] |
void BALL::Spectrum< DataT, PeakT, PositionT >::clear | ( | ) | [inline, virtual] |
Clear the spectrum. Sets all data to zero.
double BALL::Spectrum< DataT, PeakT, PositionT >::difference | ( | const Spectrum< DataT, PeakT, PositionT > & | spectrum | ) | const [inline, virtual] |
Calculate the difference between two spectra.
Referenced by BALL::operator-().
DataType& BALL::Spectrum< DataT, PeakT, PositionT >::getData | ( | ) |
const DataType& BALL::Spectrum< DataT, PeakT, PositionT >::getData | ( | ) | const |
Spectrum< DataT, PeakT, PositionT >::PositionType BALL::Spectrum< DataT, PeakT, PositionT >::getSpacing | ( | ) | const [inline, virtual] |
Return the spacing.
References BALL::Spectrum< DataT, PeakT, PositionT >::spacing_.
virtual void BALL::Spectrum< DataT, PeakT, PositionT >::setSpacing | ( | const PositionType & | spacing | ) | [virtual] |
DataType BALL::Spectrum< DataT, PeakT, PositionT >::data_ [protected] |
PositionType BALL::Spectrum< DataT, PeakT, PositionT >::max_ [protected] |
PositionType BALL::Spectrum< DataT, PeakT, PositionT >::min_ [protected] |
PositionType BALL::Spectrum< DataT, PeakT, PositionT >::spacing_ [protected] |
Referenced by BALL::Spectrum< DataT, PeakT, PositionT >::getSpacing().