summaryrefslogtreecommitdiffstats
path: root/facebook_analysis/ads.pyx
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2014-11-22 21:08:41 -0500
committerThibaut Horel <thibaut.horel@gmail.com>2014-11-22 21:08:41 -0500
commit36eb1fee5492e57368846cbf4e107f1e4cb31589 (patch)
tree6380028284779e10d01fb9ff51f3c561ae9ce57c /facebook_analysis/ads.pyx
parent4f7d4804234f5515a4dded8b05d9568653b7ae3c (diff)
downloadfast-seeding-36eb1fee5492e57368846cbf4e107f1e4cb31589.tar.gz
WWW version
Diffstat (limited to 'facebook_analysis/ads.pyx')
-rw-r--r--facebook_analysis/ads.pyx8
1 files changed, 5 insertions, 3 deletions
diff --git a/facebook_analysis/ads.pyx b/facebook_analysis/ads.pyx
index 2682456..40d6391 100644
--- a/facebook_analysis/ads.pyx
+++ b/facebook_analysis/ads.pyx
@@ -91,14 +91,16 @@ cdef float merge_opt_p_sample(list l1, list l2, int t, dict degrees, float p):
i = j = 0
n = s = 0.
cdef int k
+ cdef int l
cdef dict a
cdef float r
k = 0
r = 0
+ l = 0
a = {}
- for k in xrange(len(degrees)**2):
- for d in degrees:
- a[d] = random.random()
+ for k in xrange(t**2):
+ for l in xrange(t):
+ random.random()
while n < t:
if i == n1 and j == n2:
break