def test_metropolis_energy_increase_accept(self): a = mc.metropolis(300, 100e-20, 101e-20, n=0.01) self.assertTrue(a)
def test_metropolis_energy_increase_reject(self): a = mc.metropolis(300, 100e-20, 101e-20, n=0.1) self.assertFalse(a)
def test_metropolis_energy_reduce(self): a = mc.metropolis(300, 100, 1) self.assertTrue(a)