Created
May 13, 2018 12:07
-
-
Save saschagrunert/648c8c055ba8037c0c93946c1c3563ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double average(const std::vector<uint32_t> & input) { | |
return std::accumulate(input.cbegin(), | |
input.cend(), | |
0) / (double)input.size(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment