diff options
Diffstat (limited to 'histogram.h')
-rw-r--r-- | histogram.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/histogram.h b/histogram.h deleted file mode 100644 index 76d8f1b..0000000 --- a/histogram.h +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | #ifndef HISTOGRAM_H_24094D97 | ||
2 | #define HISTOGRAM_H_24094D97 | ||
3 | |||
4 | #include <map> | ||
5 | #include <string> | ||
6 | |||
7 | template <class T> | ||
8 | class histogram { | ||
9 | public: | ||
10 | void add(const T& inst); | ||
11 | void compile(); | ||
12 | const T& next() const; | ||
13 | void print() const; | ||
14 | |||
15 | private: | ||
16 | std::map<T, int> freqtable; | ||
17 | std::map<int, T> distribution; | ||
18 | }; | ||
19 | |||
20 | #endif /* end of include guard: HISTOGRAM_H_24094D97 */ | ||