Function ADS::scaleFrequencies
Defined in File Rans.h
Function Documentation
-
inline std::array<std::uint32_t, 256> ADS::scaleFrequencies(const std::array<std::uint64_t, 256> &f, int b)
the frequencies f scaled to sum to 2^b, each positive one kept positive
- Pre:
some frequency is positive, and at most 2^b are