Template Function ADS::arithmeticDecodeExact

Function Documentation

template<class C>
std::vector<C> ADS::arithmeticDecodeExact(const std::string &bits, std::size_t n, const std::map<C, Rational> &prob)

the text of n symbols of the code bits

Pre:

the probabilities positive with sum 1, bits a string of ‘0’ and ‘1’