81 if (
this == &rhs)
return *
this;
156 template <
class PeakIteratorType>
157 void updateRanges_(
const PeakIteratorType & begin,
const PeakIteratorType & end)
171 for (PeakIteratorType it = begin; it != end; ++it)
174 for (
UInt i = 0; i < D; ++i)
176 double tmp = it->getPosition()[i];
188 double tmp = it->getIntensity();
Representation of a coordinate in D-dimensional space.
Definition: DPosition.h:54
A D-dimensional half-open interval.
Definition: DRange.h:62
PositionType const & maxPosition() const
Accessor to maximum position.
Definition: DIntervalBase.h:130
void setMinX(CoordinateType const c)
Mutator for min_ coordinate of the smaller point.
Definition: DIntervalBase.h:267
void setMaxX(CoordinateType const c)
Mutator for min_ coordinate of the larger point.
Definition: DIntervalBase.h:281
static DIntervalBase const empty
empty instance
Definition: DIntervalBase.h:233
PositionType const & minPosition() const
Accessor to minimum position.
Definition: DIntervalBase.h:124
Handles the management of a position and intensity range.
Definition: RangeManager.h:48
IntensityRangeType int_range_
Intensity range (1-dimensional)
Definition: RangeManager.h:151
void updateRanges_(const PeakIteratorType &begin, const PeakIteratorType &end)
Updates the range using data points in the iterator range.
Definition: RangeManager.h:157
RangeManager()
Default constructor.
Definition: RangeManager.h:60
const PositionType & getMin() const
Returns the minimum position.
Definition: RangeManager.h:111
DPosition< D > PositionType
Position Type.
Definition: RangeManager.h:55
bool operator==(const RangeManager &rhs) const
Equality operator.
Definition: RangeManager.h:90
virtual void updateRanges()=0
Updates minimum and maximum position/intensity.
DRange< 1 > IntensityRangeType
Intensity range type.
Definition: RangeManager.h:57
double getMaxInt() const
Returns the maximum intensity.
Definition: RangeManager.h:129
RangeManager(const RangeManager &rhs)
Copy constructor.
Definition: RangeManager.h:66
void clearRanges()
Resets the ranges.
Definition: RangeManager.h:142
PositionRangeType pos_range_
Position range (D-dimensional)
Definition: RangeManager.h:153
const PositionType & getMax() const
Returns the maximum position.
Definition: RangeManager.h:117
@ DIMENSION
Definition: RangeManager.h:51
DRange< D > PositionRangeType
Position range type.
Definition: RangeManager.h:53
RangeManager & operator=(const RangeManager &rhs)
Assignment operator.
Definition: RangeManager.h:79
bool operator!=(const RangeManager &rhs) const
Equality operator.
Definition: RangeManager.h:97
double getMinInt() const
Returns the minimum intensity.
Definition: RangeManager.h:123
RangeManager(RangeManager &&) noexcept=default
Move constructor.
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47