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