uint32_t GetSymbolFrequency(uint32_t aContext, uint32_t aSymbol)
Get the number of occurrences of the given symbol in the context.
const uint32_t m_arraySizeIncr
the ammount to increase the size of an array when reallocating an array.
uint32_t GetSymbolFromFrequency(uint32_t aContext, uint32_t symbolFrequency)
Find the symbol in a histogram that has the specified cumulative frequency.
uint32_t GetTotalSymbolFrequency(uint32_t aContext)
Get the total occurrences of all the symbols in this context.
std::vector< std::vector< std::uint32_t > > m_cumulativeCount
uint32_t GetCumulativeSymbolFrequency(uint32_t aContext, uint32_t aSymbol)
Get the total number of occurrences for all symbols less than the given symbol in the context.
std::vector< std::vector< std::uint32_t > > m_symbolCount
void AddSymbol(uint32_t aContext, uint32_t aSymbol)
Add an occurrence of the symbol to the specified context.
const uint32_t m_maximumSymbolInHistogram
the maximum value that is stored in a histogram
const uint32_t m_elephant
Elephant determines the number of symbol occurences that are stored in each histogram.