Check boolean probability distributions
Issue #24
closed
When calling a specific method to get a probability value from a boolean probability distribution, it would be safer to check that the values are actual booleans. An exception should be raised if a non-boolean value is found. Otherwise, odd results may be obtained due to coercion of Python types to boolean. This concerns isTrue
, isFeasible
methods, as well as new P
, Pf
methods described in #23.
Comments (6)
-
reporter -
reporter - changed status to resolved
done in Lea 2.2.0
-
reporter Merge Lea._pC method into Lea._p, add checkValType arg (refs
#24)→ <<cset 42f93c444a63>>
-
reporter - changed status to closed
-
reporter Check boolean probability distributions for isTrue, isFeasible, P and Pf methods (refs
#24)→ <<cset 60b540463311>>
-
reporter Merge Lea._pC method into Lea._p, add checkValType arg (refs
#24)→ <<cset 2ab2958baed7>>
- Log in to comment
Check boolean probability distributions for isTrue, isFeasible, P and Pf methods (refs
#24)→ <<cset d0f1ac48365f>>