78 if (
this == &rhs)
return *
this;
153 template <
class PeakIteratorType>
154 void updateRanges_(
const PeakIteratorType & begin,
const PeakIteratorType & end)
168 for (PeakIteratorType it = begin; it != end; ++it)
171 for (
UInt i = 0; i < D; ++i)
173 double tmp = it->getPosition()[i];
185 double tmp = it->getIntensity();
double getMinInt() const
Returns the minimum intensity.
Definition: RangeManager.h:120
void setMaxX(CoordinateType const c)
Mutator for min_ coordinate of the larger point.
Definition: DIntervalBase.h:278
DPosition< D > PositionType
Position Type.
Definition: RangeManager.h:55
PositionRangeType pos_range_
Position range (D-dimensional)
Definition: RangeManager.h:150
bool operator!=(const RangeManager &rhs) const
Equality operator.
Definition: RangeManager.h:94
bool operator==(const RangeManager &rhs) const
Equality operator.
Definition: RangeManager.h:87
double getMaxInt() const
Returns the maximum intensity.
Definition: RangeManager.h:126
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
const PositionType & getMax() const
Returns the maximum position.
Definition: RangeManager.h:114
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
DRange< D > PositionRangeType
Position range type.
Definition: RangeManager.h:53
PositionType const & maxPosition() const
Accessor to maximum position.
Definition: DIntervalBase.h:127
const PositionType & getMin() const
Returns the minimum position.
Definition: RangeManager.h:108
DRange< 1 > IntensityRangeType
Intensity range type.
Definition: RangeManager.h:57
RangeManager & operator=(const RangeManager &rhs)
Assignment operator.
Definition: RangeManager.h:76
void clearRanges()
Resets the ranges.
Definition: RangeManager.h:139
IntensityRangeType int_range_
Intensity range (1-dimensional)
Definition: RangeManager.h:148
A D-dimensional half-open interval.
Definition: DRange.h:60
RangeManager(const RangeManager &rhs)
Copy constructor.
Definition: RangeManager.h:66
void setMinX(CoordinateType const c)
Mutator for min_ coordinate of the smaller point.
Definition: DIntervalBase.h:264
void updateRanges_(const PeakIteratorType &begin, const PeakIteratorType &end)
Updates the range using data points in the iterator range.
Definition: RangeManager.h:154
Handles the management of a position and intensity range.
Definition: RangeManager.h:47
virtual ~RangeManager()
Destructor.
Definition: RangeManager.h:72
static DIntervalBase const empty
empty instance
Definition: DIntervalBase.h:230
virtual void updateRanges()=0
Updates minimum and maximum position/intensity.
Definition: RangeManager.h:51
RangeManager()
Default constructor.
Definition: RangeManager.h:60
PositionType const & minPosition() const
Accessor to minimum position.
Definition: DIntervalBase.h:121