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

Class SizedNormalDist

Lib/test/test_statistics.py:3259–3262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3257 # All subclasses to compare equal giving the same behavior
3258 # as list, tuple, int, float, complex, str, dict, set, etc.
3259 class SizedNormalDist(NormalDist):
3260 def __init__(self, mu, sigma, n):
3261 super().__init__(mu, sigma)
3262 self.n = n
3263 s = SizedNormalDist(100, 15, 57)
3264 nd4 = NormalDist(100, 15)
3265 self.assertEqual(s, nd4)

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…