Given the set S of all possible structures, only a subset of these will comply with the formulated hypotheses. We can now find the probability of H as:
where is the partition function calculated for all structures permissible by H and is the full partition function. Calculating the probability can thus be done with two passes of the partition function calculation, one with structural constraints, and one without. 22.21.