MCPcopy Index your code
hub / github.com/python/cpython / LognormalDist

Class LognormalDist

Lib/test/test_statistics.py:3270–3273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3268 # want a lognormal distribution to compare equal
3269 # to a normal distribution with the same parameters
3270 class LognormalDist:
3271 def __init__(self, mu, sigma):
3272 self.mu = mu
3273 self.sigma = sigma
3274 lnd = LognormalDist(100, 15)
3275 nd = NormalDist(100, 15)
3276 self.assertNotEqual(nd, lnd)

Callers 1

test_equalityMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_equalityMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…