Function ADS::entropy(std::string_view, std::size_t)

Function Documentation

inline double ADS::entropy(std::string_view s, std::size_t k)

the empirical entropy of order k of s, in bits per symbol; 0 if s is empty

Post:

entropy( s , k ) <= entropy( s ) (up to the rounding)