MCPcopy Create free account
hub / github.com/arq5x/bedtools2 / getMax

Method getMax

src/utils/KeyListOps/KeyListOpsMethods.cpp:153–163  ·  view source on GitHub ↗

return the maximum element of the vector

Source from the content-addressed store, hash-verified

151
152// return the maximum element of the vector
153double KeyListOpsMethods::getMax() {
154 if (empty()) return NAN;
155
156 begin();
157 double maxVal = getColValNum();
158 for (; !end(); next()) {
159 double currVal = getColValNum();
160 maxVal = (currVal > maxVal) ? currVal : maxVal;
161 }
162 return maxVal;
163}
164
165// return the minimum absolute value of the vector
166double KeyListOpsMethods::getAbsMin() {

Callers 1

KeyListOps.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected