BALL::Spectrum< DataT, PeakT, PositionT > Class Template Reference
[NMR spectra and related classes]

A generic NMR spectrum class. More...

#include <spectrum.h>

List of all members.


Public Types

typedef DataT DataType
Typedefs.
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.
Spectrum ()
Constructors and Destructor.
Accessors
const DataType & getData () const
DataType & getData ()

Protected Attributes

DataType data_
PositionType spacing_
PositionType min_
PositionType max_

Detailed Description

template<typename DataT, typename PeakT, typename PositionT = typename PeakT::Position>
class BALL::Spectrum< DataT, PeakT, PositionT >

A generic NMR spectrum class.

Member Typedef Documentation

template<typename DataT, typename PeakT, typename PositionT = typename PeakT::Position>
typedef DataT BALL::Spectrum< DataT, PeakT, PositionT >::DataType

Typedefs.

The datatype used to store the spectrum


Member Function Documentation

template<typename DataT , typename PeakT , typename PositionT >
void BALL::Spectrum< DataT, PeakT, PositionT >::clear ( ) [virtual]

Clear the spectrum.

Sets all data to zero.


Generated on Thu Aug 6 18:30:40 2009 for BALL by doxygen 1.5.8