create_prob_distribution function

Create a distribution object