A tutorial showing how to fit a distribution to a sample is available here.
Click here for other tutorials.