Added support for nested distribution detection in distribution compare,
as well as a nested loglikelihood ratio function.
Comparing powerlaw's calculations to Shalizi's code.
Commit before restructuring virtually everything.
About halfway through making a mess and cleaning it up. I've put all the calculations inside the Fit and Distribution_Fit classes. The issue now is figuring out how to intelligently have individual classes for the various distributions that stick onto the Distribution_Fit class.
Trying out a different way of plugging distributionsand Distribution_Fit together.
Restructured Fit, Distribution, and Distribution subclasses
intelligently. Now just need to fill out all the subclasses, with their
individual pdf and cdf calculations. Will want to think about passing
kwargs around in distribution_compare and elsewhere to the individual
subclasses, just like with estimate_discrete.
Finally got the CDF calculation correct and the discretization by
rounding approximation working appropriately.
Minor bug fixes
Added probability distribution calculation for original data, and put in
framework for invalid parameter manipulation.
Modified Exponential to new Distribution format. Unsure how it will work.
Changed the invalid parameter logic to a parameter range logic.
Changed Power_Law to new Distribution form.
parameter range behavior now working great
Created sensible data passing from the Fit to Distribution objects, so
that Distribution objects don't HAVE to always receive data from the user.
Stretched exponential and truncated power law classes added, but appear
to have broken something in the process.
Fixed issue with Exponential's override of loglikelihoods not working.
Added normalized_ratio calculation for nested distributions.
Fixed issue with not handing data to a Distribution object for ccdf
Removed loglikelihood from automatic calculations when fitting.
Lots of tweaks and bug fixes. Now to figure out parameter_range.