Probability that a given constraint is observed

You can have a look at the example in https://github.com/elfi-dev/elfi