| 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 | { |
no test coverage detected