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>
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)
95 max =
std::max(max, it->getIntensity());
108 for (; it != std::list<PT>::end(); ++it)
110 min =
std::min(min, it->getIntensity());
137 #endif // BALL_NMR_PEAKLIST_H
PeakList< Peak< Vector2 > > PeakList2D
2D peak list
Peak< float >::Position Position
The peak position type.
#define BALL_CREATE(name)
PeakList(const PeakList &peak_list)
PeakList< Peak< float > > PeakList1D
1D peak list
std::list< Peak< float > >::iterator Iterator
float getMaxIntensity() const
T max(const T &a, const T &b)
PeakList< Peak< Vector3 > > PeakList3D
3D peak list
float getMinIntensity() const
std::list< Peak< float > >::const_iterator ConstIterator
T min(const T &a, const T &b)