docs: def partitioned_probability(self, direction, partition):
          """Compute the probability of the mechanism over the purview in
          the partition.
          """
          repertoire = self.partitioned_repertoire(direction, partition)
          return self.state_probability(direction, repertoire, partition.purview)