Contents:
Calculate the probability of a configuration for a given temperature and partition function, Z.