#include <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 () |
| Clear the spectrum. | |
| virtual double | difference (const Spectrum< DataT, PeakT, PositionT > &spectrum) const |
| Calculate the difference between two spectra. | |
| virtual void | setSpacing (const PositionType &spacing) |
| virtual PositionType | getSpacing () const |
| Return the spacing. | |
Accessors | |
| const DataType & | getData () const throw () |
| DataType & | getData () throw () |
Protected Attributes | |
| DataType | data_ |
| PositionType | spacing_ |
| PositionType | min_ |
| PositionType | max_ |
|
|||||||||
|
Clear the spectrum. Sets all data to zero. |
|
||||||||||
|
Calculate the difference between two spectra.
|
|
|||||||||
|
Return the spacing.
|