Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. The Hartley
function is a measure of uncertainty, introduced by Ralph Hartley in
1928. If we pick a sample from a finite set A uniformly at random, the
information revealed after we know the outcome is given by the Hartley
function. If the base of the logarithm is 2, then the uncertainty is
measured in bits. If it is the natural logarithm, then the unit is nats.
(Hartley himself used a base-ten logarithm, and this unit of information
is sometimes called the hartley in his honor.) It is also known as the
Hartley entropy.