Computes the acceptance probability based on the distance (m_new - m_old), with m the metric to be maximized.
The distance m_new - m_old when maximizing the metric m.
The acceptance probability between 0 and 1.