-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.py
39 lines (29 loc) · 936 Bytes
/
example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
'''
Created on Mar 8, 2011
@author: Mehmet Ali Anil
'''
from kreveik import *
import numpy as num
import matplotlib.pyplot as plt
import copy
__author__ = "Mehmet Ali Anil"
__copyright__ = ""
__credits__ = ["Mehmet Ali Anil"]
__license__ = ""
__version__ = "0.0.5"
__maintainer__ = "Mehmet Ali Anil"
__email__ = "[email protected]"
__status__ = "Production"
if __name__ == '__main__':
petri=[None]*2000
scores=[None]*2000
for n in range(2000):
petri[n] = classes.Family()
for m in range(10):
petri[n].add_to_family(classes.generate_random(7,
scorers.sum_scorer,
boolfuncs.xor_masking,
probability = (n/1999.0,0.5,0.5)))
petri[n].populate_equilibria_in_family()
scores[n] = petri[n].scores.mean()
print scores[n]