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

Method getAbsMax

src/utils/KeyListOps/KeyListOpsMethods.cpp:178–188  ·  view source on GitHub ↗

return the maximum absolute value of the vector

Source from the content-addressed store, hash-verified

176}
177// return the maximum absolute value of the vector
178double KeyListOpsMethods::getAbsMax() {
179 if (empty()) return NAN;
180
181 begin();
182 double maxVal = abs(getColValNum());
183 for (; !end(); next()) {
184 double currVal = abs(getColValNum());
185 maxVal = (currVal > maxVal) ? currVal : maxVal;
186 }
187 return maxVal;
188}
189// return the count of element in the vector
190uint32_t KeyListOpsMethods::getCount() {
191 return _keyList->size();

Callers 1

KeyListOps.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected