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

Method getSum

src/utils/KeyListOps/KeyListOpsMethods.cpp:40–48  ·  view source on GitHub ↗

return the total of the values in the vector

Source from the content-addressed store, hash-verified

38
39// return the total of the values in the vector
40double KeyListOpsMethods::getSum() {
41 if (empty()) return NAN;
42
43 double theSum = 0.0;
44 for (begin(); !end(); next()) {
45 theSum += getColValNum();
46 }
47 return theSum;
48}
49
50// return the average value in the vector
51double KeyListOpsMethods::getMean() {

Callers 1

KeyListOps.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected