BALL::PeakList< PT > Class Template Reference
[NMR spectra and related classes]

#include <BALL/NMR/peakList.h>

Inheritance diagram for BALL::PeakList< PT >:
BALL::List< PT >

List of all members.


Public Types

Typedefs
typedef PT::Position Position
 

The peak position type.


typedef PT PeakType
 

The peak type.


typedef List< PT >::iterator Iterator
typedef List< PT >::ConstIterator ConstIterator

Public Member Functions

Constructors and Destructors
 PeakList ()
 PeakList (const PeakList &peak_list)
virtual ~PeakList ()
Accessors
void scale (float x)
float getMaxIntensity () const
float getMinIntensity () const

Detailed Description

template<typename PT>
class BALL::PeakList< PT >

A generic peak list for spectra of arbitrary dimension.


Member Typedef Documentation

template<typename PT>
typedef List<PT>::ConstIterator BALL::PeakList< PT >::ConstIterator

Constant iterator type.

Reimplemented from BALL::List< PT >.

template<typename PT>
typedef List<PT>::iterator BALL::PeakList< PT >::Iterator

Iterator type.

Reimplemented from BALL::List< PT >.

template<typename PT>
typedef PT BALL::PeakList< PT >::PeakType

The peak type.

template<typename PT>
typedef PT::Position BALL::PeakList< PT >::Position

The peak position type.


Constructor & Destructor Documentation

template<typename PT>
BALL::PeakList< PT >::PeakList (  )  [inline]

Default Constructor

template<typename PT>
BALL::PeakList< PT >::PeakList ( const PeakList< PT > &  peak_list  )  [inline]

Copy constructor

template<typename PT>
virtual BALL::PeakList< PT >::~PeakList (  )  [inline, virtual]

Destructor


Member Function Documentation

template<typename PT>
float BALL::PeakList< PT >::getMaxIntensity (  )  const [inline]

Determine the maximum intensity of all peaks.

Returns:
maximum intensity, Limits<float>::min() for an empty peak list
template<typename PT>
float BALL::PeakList< PT >::getMinIntensity (  )  const [inline]

Determine the minimum intensity of all peaks.

Returns:
minimum intensity, Limits<float>::max() for an empty peak list
template<typename PT>
void BALL::PeakList< PT >::scale ( float  x  )  [inline]

Scale all peak intensities with a factor.