(p)
| 163 | |
| 164 | # Normalization function on a narrow range (e.g. [0.4, 0.8]) |
| 165 | def norm(p): |
| 166 | if pmax > pmin: |
| 167 | return 0.4 + (p - pmin) / (pmax - pmin) * (0.8 - 0.4) |
| 168 | else: |
| 169 | return 0.6 |
| 170 | |
| 171 | # Plot of each forecast with the color based on the first probability |
| 172 | for i in range(num_samples): |
no outgoing calls
no test coverage detected