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