Calculate sum ---------------------------------------------------------------------------
| 110 | // Calculate sum |
| 111 | // --------------------------------------------------------------------------- |
| 112 | float 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 | // --------------------------------------------------------------------------- |
nothing calls this directly
no outgoing calls
no test coverage detected