Lots of changes in this version:
First and foremost, bug fixes:
Continuous power law, continuous truncated power law, and lognormal discrete all had typos in the equations. Some of them should have been immaterial, but if you have used those distributions, I suggest checking nothing has changed. Sorry these flew under the radar; I don't focus on those distributions in my research, and hadn't implemented tests for them. I have not yet written full tests for all versions of all distributions, and that will be coming in the next version. I wanted to get these revisions out now, though, so that people didn't continue to use buggy code. There might yet be more bugs hiding, and that will be fixed with better unit testing for version .5.
New features:
find_xmin now has the keyword return_all. If return_all=True, then the results of find_xmin are:
xmin, D, alpha, loglikelihood, n_tail, noise_flag, xmins, Ds, alphas, sigmas
Where xmins are all xmins tested, and Ds, alphas, and sigmas are those values for the fits using those xmins.
distribution_fit, Fit, etc. now include the keyword estimate_discrete, which sets the power law calculation for the discrete case to use a equation B.17 from Clauset et al. This is not perfect, but does an ok job and runs much faster than numerical search for the best fit. This particularly matters when searching for the optimal xmin on a large dataset (one with many unique values).
Added stretched exponential, gamma, and negative binomial distributions (untested).
To Do for version .5:
Rock solid testing of distributions for all cases (should have been done in version .1!)
Prettier code, with comments
Pretty documentation