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);
92 float max = -std::numeric_limits<float>::max();
93 for (; it != std::list<PT>::end(); ++it)
95 max = std::max(max, it->getIntensity());
107 float min = std::numeric_limits<float>::max();
108 for (; it != std::list<PT>::end(); ++it)
110 min = std::min(min, it->getIntensity());
#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
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