Template Function ADS::entropy(const std::map<C, F>&)

Function Documentation

template<class C, class F>
double ADS::entropy(const std::map<C, F> &freq)

the entropy of order 0, in bits per symbol, of the distribution proportional to the frequencies freq

Pre:

no frequency negative, not all 0