|
Antonie
|
Very simple duplicate count estimator using a simple hash. Also provides statistics. More...
Public Types | |
| typedef map< uint64_t, uint64_t > | counts_t |
| clean ourselves up | |
Public Member Functions | |
| DuplicateCounter (int estimate=1000000) | |
| void | feedString (const std::string &str) |
| void | clear () |
| do statistics on str | |
| counts_t | getCounts () |
Very simple duplicate count estimator using a simple hash. Also provides statistics.
| typedef map<uint64_t,uint64_t> DuplicateCounter::counts_t |
clean ourselves up
| DuplicateCounter::DuplicateCounter | ( | int | estimate = 1000000 | ) | [inline] |
| void DuplicateCounter::clear | ( | ) |
do statistics on str
| void DuplicateCounter::feedString | ( | const std::string & | str | ) |
1.7.6.1