diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2019-02-28 20:28:20 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2019-02-28 20:28:20 -0500 |
commit | d7e934156858287cdb7597ad0dced97d4d279f2f (patch) | |
tree | e1822649bb449d972839bb5c8adfd6b1c51d652c /histogram.h | |
parent | b85830e8a852392036a803b7f6bb417c28ff17c4 (diff) | |
download | aspartame-d7e934156858287cdb7597ad0dced97d4d279f2f.tar.gz aspartame-d7e934156858287cdb7597ad0dced97d4d279f2f.tar.bz2 aspartame-d7e934156858287cdb7597ad0dced97d4d279f2f.zip |
Got it bot-ready!
Using C++ randomization now, along with an update to rawr-ebooks that allows it to do the same. Cleaned up the code here and there. Added in the twitter client and the config file reader. We can use librawr's histogram class now, so we don't need our own. Also why did we not name this bot "aspartame". It's a Sugar replacer. Hahaha. I'm Pink Diamond.
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 */ | ||