HGAna 0.1
  • API
  • Affinity
  • Adsorption
  • Site
    • Page
        • MC._metropolis

    MC._metropolis¶

    MC._metropolis(dE)¶

    Performs the acceptance criterion of the Metropolis–Hastings algorithm.

    Parameters:
    dE : float

    The difference in energy between the new and old state

    Returns:
    accepted : bool

    True if move is accepted

    Back to top

    © Copyright 2021, Hamzeh Kraus.
    Created using Sphinx 1.6.6.