Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Public Member Functions
ArithmeticModel< SymbolType > Class Template Reference

#include <ArithmeticModel.h>

Public Member Functions

 ArithmeticModel (const ext::set< SymbolType > &alphabet)
 
void update (const SymbolType &symbol)
 
void getProbability (const SymbolType &c, unsigned &low_prob, unsigned &high_prob) const
 
void getProbabilityEof (unsigned &low_prob, unsigned &high_prob) const
 
SymbolType getChar (unsigned scaled_value, unsigned &low_prob, unsigned &high_prob) const
 
bool isEof (unsigned scaled_value) const
 
unsigned getCount () const
 

Constructor & Destructor Documentation

◆ ArithmeticModel()

template<class SymbolType >
ArithmeticModel< SymbolType >::ArithmeticModel ( const ext::set< SymbolType > &  alphabet)
inline
Here is the call graph for this function:

Member Function Documentation

◆ getChar()

template<class SymbolType >
SymbolType ArithmeticModel< SymbolType >::getChar ( unsigned  scaled_value,
unsigned &  low_prob,
unsigned &  high_prob 
) const
inline
Here is the call graph for this function:

◆ getCount()

template<class SymbolType >
unsigned ArithmeticModel< SymbolType >::getCount ( ) const
inline

◆ getProbability()

template<class SymbolType >
void ArithmeticModel< SymbolType >::getProbability ( const SymbolType &  c,
unsigned &  low_prob,
unsigned &  high_prob 
) const
inline
Here is the call graph for this function:

◆ getProbabilityEof()

template<class SymbolType >
void ArithmeticModel< SymbolType >::getProbabilityEof ( unsigned &  low_prob,
unsigned &  high_prob 
) const
inline

◆ isEof()

template<class SymbolType >
bool ArithmeticModel< SymbolType >::isEof ( unsigned  scaled_value) const
inline

◆ update()

template<class SymbolType >
void ArithmeticModel< SymbolType >::update ( const SymbolType &  symbol)
inline
Here is the call graph for this function:

The documentation for this class was generated from the following file: