|
Tree Compression with Top Trees Revisited
|
Calculate entropy of a sequence of symbols. More...
#include <Entropy.h>
Public Member Functions | |
| EntropyCalculator () | |
| Initialise entropy calculator. More... | |
| void | addItem (const T &item) |
| void | addItem (T &&item) |
| template<class InputIterator > | |
| void | addSequence (InputIterator begin, InputIterator end) |
| size_t | numSymbols () const |
| The number of distinct symbols encountered. More... | |
| CounterType | numOccurences () const |
| The number of occurences counted. More... | |
| double | getEntropy () const |
| The entropy of a memoryless source using the symbol frequencies observed. More... | |
| double | optBitsForSymbol (const T &symbol) const |
| double | optBitsForSymbol (T &&symbol) const |
| std::string | summary () const |
| A short string summary of the data collected. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const EntropyCalculator &entropy) |
Calculate entropy of a sequence of symbols.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
1.8.9.1