Ian Jauslin
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/statistics.h')
-rw-r--r--src/statistics.h9
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