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

Method getMin

src/utils/KeyListOps/KeyListOpsMethods.cpp:140–150  ·  view source on GitHub ↗

return the minimum element of the vector

Source from the content-addressed store, hash-verified

138}
139// return the minimum element of the vector
140double KeyListOpsMethods::getMin() {
141 if (empty()) return NAN;
142
143 begin();
144 double minVal = getColValNum();
145 for (; !end(); next()) {
146 double currVal = getColValNum();
147 minVal = (currVal < minVal) ? currVal : minVal;
148 }
149 return minVal;
150}
151
152// return the maximum element of the vector
153double KeyListOpsMethods::getMax() {

Callers 1

KeyListOps.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected