Port distribution_from_data() from CMPy.
Automatically import dit.example_dists.