Computes the exponential probability
The distance m_new - m_old when maximizing the metric m.
The acceptance probability.