MCPcopy Create free account
hub / github.com/RustPython/RustPython / SizedNormalDist

Class SizedNormalDist

Lib/test/test_statistics.py:3261–3264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

test_equalityMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_equalityMethod · 0.68