Two NormalDist objects are equal if their mu and sigma are both equal.
(x1, x2)
| 1429 | __rmul__ = __mul__ |
| 1430 | |
| 1431 | def __eq__(x1, x2): |
| 1432 | "Two NormalDist objects are equal if their mu and sigma are both equal." |
| 1433 | if not isinstance(x2, NormalDist): |
| 1434 | return NotImplemented |
| 1435 | return x1._mu == x2._mu and x1._sigma == x2._sigma |
| 1436 | |
| 1437 | def __hash__(self): |
| 1438 | "NormalDist objects hash equal if their mu and sigma are both equal." |