Code to calculate the probability of a data set

First draft of code to calculate the probability of data given violation
profiles and observed counts for input-output pairs, along with
constraint weights.