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
T max(const T &a, const T &b)
PeakList(const PeakList &peak_list)
Peak< float > ::Position Position
The peak position type.
std::list< Peak< float > >::const_iterator ConstIterator
float getMinIntensity() const
T min(const T &a, const T &b)
PeakList< Peak< Vector3 > > PeakList3D
3D peak list
std::list< Peak< float > >::iterator Iterator
PeakList< Peak< Vector2 > > PeakList2D
2D peak list
float getMaxIntensity() const
PeakList< Peak< float > > PeakList1D
1D peak list
#define BALL_CREATE(name)