In the discrete case, the Shannon expression for entropy is obtained as a line integral in probability space. The integrand is the "information density vector" (

. In the continuous case, the continuous analog of information density is integrated to obtain the entropy expression for continuous probability distributions.