Ejemplo n.º 1
0
 def test_wireFrame(
         self):  # 3d graph of equilibrium found when varying two variables
     s = VariedGame(HawkDoveBourgeois, WrightFisher)
     s.vary_2params('v', (0, 5, 1),
                    'c', (1, 5, 1),
                    num_iterations=1,
                    num_gens=200)
Ejemplo n.º 2
0
 def test_contour_graph(self):  # 2d contour color plot
     s = VariedGame(HawkDoveBourgeois, WrightFisher)
     s.vary_2params('v', (0, 50, 1),
                    'c', (0, 100, 1),
                    num_iterations=1,
                    num_gens=500,
                    burn=499,
                    graph=dict(type='contour', lineArray=[(0, 50, 0, 50)]))
Ejemplo n.º 3
0
 def test_3d_graphb(self):
     s = VariedGame(CWOL, WrightFisher)
     s.vary_2params('c_high', (4.05, 20.95, 35),
                    'p', (0.1, 0.9, 35),
                    num_iterations=2,
                    num_gens=150)
Ejemplo n.º 4
0
 def test_3d_graph(self):
     s = VariedGame(CWOL, WrightFisher)
     s.vary_2params('a', (0, 2, 30),
                    'b', (0, 5, 30),
                    num_iterations=2,
                    num_gens=150)
Ejemplo n.º 5
0
 def test_3d_graphb(self):
     s = VariedGame(CWOL, WrightFisher)
     s.vary_2params('c_high', (4.05, 20.95, 35), 'p', (0.1, 0.9, 35), num_iterations=2, num_gens=150)
Ejemplo n.º 6
0
 def test_3d_graph(self):
     s = VariedGame(CWOL, WrightFisher)
     s.vary_2params('a', (0, 2, 30), 'b', (0, 5, 30), num_iterations=2, num_gens=150)