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

Method getAbsMin

src/utils/KeyListOps/KeyListOpsMethods.cpp:166–176  ·  view source on GitHub ↗

return the minimum absolute value of the vector

Source from the content-addressed store, hash-verified

164
165// return the minimum absolute value of the vector
166double KeyListOpsMethods::getAbsMin() {
167 if (empty()) return NAN;
168
169 begin();
170 double minVal = abs(getColValNum());
171 for (; !end(); next()) {
172 double currVal = abs(getColValNum());
173 minVal = (currVal < minVal) ? currVal : minVal;
174 }
175 return minVal;
176}
177// return the maximum absolute value of the vector
178double KeyListOpsMethods::getAbsMax() {
179 if (empty()) return NAN;

Callers 1

KeyListOps.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected