comparison tests/test-ancestor.py @ 51700:7f0cb9ee0534

Backout accidental publication of a large range of revisions I accidentally published 25e7f9dcad0f::bd1483fd7088, this is the inverse.
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 23 Jul 2024 10:02:46 +0200
parents 493034cc3265
children ca7bde5dbafb
comparison
equal deleted inserted replaced
51699:bd1483fd7088 51700:7f0cb9ee0534
85 # empirically observed to take around 1 second 85 # empirically observed to take around 1 second
86 graphcount = 100 86 graphcount = 100
87 testcount = 10 87 testcount = 10
88 inccount = 10 88 inccount = 10
89 nerrs = [0] 89 nerrs = [0]
90
91 # the default mu and sigma give us a nice distribution of mostly 90 # the default mu and sigma give us a nice distribution of mostly
92 # single-digit counts (including 0) with some higher ones 91 # single-digit counts (including 0) with some higher ones
93 def lognormrandom(mu, sigma): 92 def lognormrandom(mu, sigma):
94 return int(math.floor(rng.lognormvariate(mu, sigma))) 93 return int(math.floor(rng.lognormvariate(mu, sigma)))
95 94