MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / getPositionRange

Method getPositionRange

src/openms/source/KERNEL/ConsensusFeature.cpp:126–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 }
125
126 DRange<2> ConsensusFeature::getPositionRange() const
127 {
128 DPosition<2> min = DPosition<2>::maxPositive();
129 DPosition<2> max = DPosition<2>::minPositive();
130 for (ConsensusFeature::HandleSetType::const_iterator it = handles_.begin(); it != handles_.end(); ++it)
131 {
132 if (it->getRT() < min[0])
133 {
134 min[0] = it->getRT();
135 }
136 if (it->getRT() > max[0])
137 {
138 max[0] = it->getRT();
139 }
140 if (it->getMZ() < min[1])
141 {
142 min[1] = it->getMZ();
143 }
144 if (it->getMZ() > max[1])
145 {
146 max[1] = it->getMZ();
147 }
148 }
149 return DRange<2>(min, max);
150 }
151
152 DRange<1> ConsensusFeature::getIntensityRange() const
153 {

Calls 4

beginMethod · 0.45
endMethod · 0.45
getRTMethod · 0.45
getMZMethod · 0.45

Tested by

no test coverage detected