Home
last modified time | relevance | path

Searched refs:lambd (Results 1 – 5 of 5) sorted by relevance

/external/scapy/scapy/
Dvolatile.py145 def __init__(self, lambd, base=0): argument
146 self.lambd = lambd
149 return self.base+int(round(random.expovariate(self.lambd)))
/external/python/cpython2/Doc/library/
Drandom.rst228 .. function:: expovariate(lambd)
230 Exponential distribution. *lambd* is 1.0 divided by the desired
233 range from 0 to positive infinity if *lambd* is positive, and from
234 negative infinity to 0 if *lambd* is negative.
/external/python/cpython2/Lib/
Drandom.py425 def expovariate(self, lambd): argument
440 return -_log(1.0 - self.random())/lambd
/external/python/cpython3/Lib/
Drandom.py596 def expovariate(self, lambd): argument
611 return -_log(1.0 - self.random()) / lambd
/external/python/cpython3/Doc/library/
Drandom.rst295 .. function:: expovariate(lambd)
297 Exponential distribution. *lambd* is 1.0 divided by the desired
300 range from 0 to positive infinity if *lambd* is positive, and from
301 negative infinity to 0 if *lambd* is negative.