MCPcopy Create free account
hub / github.com/BoevaLab/FREEC / get_sum

Function get_sum

src/myFunc.cpp:112–119  ·  view source on GitHub ↗

Calculate sum ---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

110// Calculate sum
111// ---------------------------------------------------------------------------
112float get_sum(const std::vector<float>& data) {
113
114 double sum = 0;
115 int arrayLength = data.size();
116 for (int i=0; i< arrayLength; i++)
117 sum+=data[i];
118 return (float)sum;
119}
120
121// Calculate median across individuals
122// ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected