Check boolean probability distributions

Issue #24 closed
Pierre Denis
repo owner created an issue

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 (4)

  1. Log in to comment