7 #ifndef BALL_NMR_PEAKLIST_H
8 #define BALL_NMR_PEAKLIST_H
10 #ifndef BALL_NMR_PEAK_H
21 template <
typename PT>
23 :
public std::list<PT>
40 typedef typename std::list<PT>::iterator
Iterator;
59 : std::list<PT>(peak_list)
79 Iterator it = std::list<PT>::begin();
80 for (; it != std::list<PT>::end(); ++it)
82 it->setIntensity(it->getIntensity() * x);
93 for (; it != std::list<PT>::end(); ++it)
108 for (; it != std::list<PT>::end(); ++it)
#define BALL_CREATE(name)
PeakList< Peak< float > > PeakList1D
1D peak list
PeakList< Peak< Vector3 > > PeakList3D
3D peak list
PeakList< Peak< Vector2 > > PeakList2D
2D peak list
T max(const T &a, const T &b)
T min(const T &a, const T &b)
std::list< PT >::const_iterator ConstIterator
float getMaxIntensity() const
PT PeakType
The peak type.
PT::Position Position
The peak position type.
std::list< PT >::iterator Iterator
PeakList(const PeakList &peak_list)
float getMinIntensity() const