Divide both mu and sigma by a constant. Used for rescaling, perhaps to change measurement units. Sigma is scaled with the absolute value of the constant.
(x1, x2)
| 1405 | return NormalDist(x1._mu * x2, x1._sigma * fabs(x2)) |
| 1406 | |
| 1407 | def __truediv__(x1, x2): |
| 1408 | """Divide both mu and sigma by a constant. |
| 1409 | |
| 1410 | Used for rescaling, perhaps to change measurement units. |
| 1411 | Sigma is scaled with the absolute value of the constant. |
| 1412 | """ |
| 1413 | return NormalDist(x1._mu / x2, x1._sigma / fabs(x2)) |
| 1414 | |
| 1415 | def __pos__(x1): |
| 1416 | "Return a copy of the instance." |