A statistical-mechanical partition function is the normalizing integral of an exponential energy weight against a specified reference measure.
For energy , inverse temperature
, and reference measure
,
it is
When this integral is finite and positive, dividing the integrand by gives a Gibbs measure. For
binary spins, counting
measure and uniform probability give partition
functions differing by a factor of
. At zero energy they give
and 1, respectively. The logarithm
divided by
is thermodynamic pressure.
The reference measure is therefore essential when comparing
formulas.