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