fit_dist function

Fit distribution to parameter