We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ff4697 commit e3cfdd7Copy full SHA for e3cfdd7
ciw/dists/distributions.py
@@ -349,8 +349,10 @@ class PhaseType(Distribution):
349
"""
350
351
def __init__(self, initial_state, absorbing_matrix):
352
- if any(p < 0 or p > 1.0 for p in initial_state):
353
- raise ValueError("Initial state vector must have valid probabilities.")
+ if any(p < 0 for p in initial_state):
+ raise ValueError("Initial state vector must have positive probabilities.")
354
+ if any(p > 1.0 for p in initial_state):
355
+ raise ValueError("Initial state vector probabilities must be no more than 1.0.")
356
if sum(initial_state) > 1.0 + 10 ** (-10) or sum(initial_state) < 1.0 - 10 ** (
357
-10
358
):
0 commit comments