diff options
author | Ian Jauslin <ian.jauslin@rutgers.edu> | 2023-04-25 16:38:25 -0400 |
---|---|---|
committer | Ian Jauslin <ian.jauslin@rutgers.edu> | 2023-04-25 16:58:45 -0400 |
commit | 519bb7272661ae4fb81a9c4851133cd8e7da1805 (patch) | |
tree | 36ad3355e180efc4f4c2a1daa49362b15982957c /src/statistics.h | |
parent | b35be9ea88dd3d28710f213afb3f63b7748ce5a6 (diff) |
running average in statistics file
Diffstat (limited to 'src/statistics.h')
-rw-r--r-- | src/statistics.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/statistics.h b/src/statistics.h new file mode 100644 index 0000000..cc344d1 --- /dev/null +++ b/src/statistics.h @@ -0,0 +1,9 @@ +#ifndef STATISTICS_H +#define STATISTICS_H + +#include <stdint.h> + +// run this at each step to compute the running average +double average_step( double val, double avg, uint64_t t, uint64_t starting_time, uint64_t print_freq, uint64_t first_box); + +#endif |