示例#1
0
 def test_vary_one2(
         self):  # Simulates while changing a single variable over time
     s = VariedGame(HawkDove,
                    WrightFisher,
                    dynamics_kwargs=dict(uniDist=True))
     s.vary_param('high_sender_proportion', (1, 15, 37),
                  num_gens=160,
                  num_iterations=500,
                  graph=dict(area=True,
                             normalize=9,
                             lineArray=[(.36, .36, 0, 1)]))
示例#2
0
 def test_vary_ch(self):
     s = VariedGame(CWOL, WrightFisher)
     s.vary_param('c_high', (4.05, 20.95, 200),
                  num_gens=150,
                  num_iterations=5)
示例#3
0
 def test_vary_p(self):
     s = VariedGame(CWOL, WrightFisher)
     s.vary_param('p', (0.1, 0.9, 60), num_gens=150, num_iterations=10)
示例#4
0
 def test_vary_one(self):
     s = VariedGame(CWOL, WrightFisher)
     s.vary_param('a', (0, 2, 60), num_gens=250, num_iterations=5)
示例#5
0
 def test_vary_d(self):
     s = VariedGame(CWOLOnlyL,
                    WrightFisher,
                    game_kwargs=dict(equilibrium_tolerance=0.4))
     s.vary_param('d', (-3, -0.05, 60), num_gens=1000, num_iterations=5)
示例#6
0
 def test_vary_p(self):
     s = VariedGame(CWOL, WrightFisher)
     s.vary_param('p', (0.1, 0.9, 60), num_gens=150, num_iterations=10)
示例#7
0
 def test_vary_ch(self):
     s = VariedGame(CWOL, WrightFisher)
     s.vary_param('c_high', (4.05, 20.95, 200), num_gens=150, num_iterations=5)
示例#8
0
 def test_vary_d(self):
     s = VariedGame(CWOLOnlyL, WrightFisher, game_kwargs=dict(equilibrium_tolerance=0.4))
     s.vary_param('d', (-3, -0.05, 60), num_gens=1000, num_iterations=5)
示例#9
0
 def test_vary_one(self):
     s = VariedGame(CWOL, WrightFisher)
     s.vary_param('a', (0, 2, 60), num_gens=250, num_iterations=5)
示例#10
0
 def test_vary_one(self):  # Simulates while changing a single variable over time
     s = VariedGame(HawkDoveBourgeois, WrightFisher, dynamics_kwargs=dict(uniDist=True))
     s.vary_param('v', (0, 5, 1), num_gens=500, num_iterations=5, graph=dict(options=['area']))