new_dist_spec function

Internal function for generating a dist_spec given parameters and a distribution.