Accept

class pyoptex.analysis.estimators.sams.accept.Accept[source]

The base class to create an acceptance function for the SAMS procedure. Requires the functions reset, accepted, rejected, and __call__.

__init__()[source]

Methods

Accept.__call__(d)

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

Accept.accepted()

Called when the state got accepted.

Accept.rejected()

Called when the state got rejected.

Accept.reset()

Should reset the acceptance function to its original temperature.