__call__

Accept.__call__(d)[source]

Computes the acceptance probability based on the distance (m_new - m_old), with m the metric to be maximized.

Parameters

dfloat

The distance m_new - m_old when maximizing the metric m.

Returns

probfloat

The acceptance probability between 0 and 1.