From 519bb7272661ae4fb81a9c4851133cd8e7da1805 Mon Sep 17 00:00:00 2001 From: Ian Jauslin Date: Tue, 25 Apr 2023 16:38:25 -0400 Subject: running average in statistics file --- src/statistics.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/statistics.h (limited to 'src/statistics.h') 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 + +// 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 -- cgit v1.2.3-54-g00ecf