From 2b152d09881559a0330b3ff923e03e715777c6c3 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 27 Feb 2019 20:45:17 -0500 Subject: Initial commit (by Pink!) --- histogram.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 histogram.h (limited to 'histogram.h') diff --git a/histogram.h b/histogram.h new file mode 100644 index 0000000..76d8f1b --- /dev/null +++ b/histogram.h @@ -0,0 +1,20 @@ +#ifndef HISTOGRAM_H_24094D97 +#define HISTOGRAM_H_24094D97 + +#include +#include + +template +class histogram { + public: + void add(const T& inst); + void compile(); + const T& next() const; + void print() const; + + private: + std::map freqtable; + std::map distribution; +}; + +#endif /* end of include guard: HISTOGRAM_H_24094D97 */ -- cgit 1.4.1