Open Qazalbash opened 1 month ago
@fehiepsi Power Law is not in SciPy. Can you guide me for the Unit Tests?
Hi @Qazalbash, you could add if/else statements to skip some tests (like some other distributions). Do you have reference for this distribution? I couldn't find it on wikipedia.
@fehiepsi unfortunately I couldn't find much on internet too. I have seen many papers in astrophysics using these distributions. Therefore, I did the derivations. If you like to see, I can share them. This way we can cross check it too.
I think we would need to let users know how to use the distribution. Could you add references / formulas in the docstring? I can double-check the formulas - though I hope that the tests will cover them.
This PR contains the implementation of Power Law distributions, that fixes #1806. There are two different types of power law implementations based on their truncation.
DoublyTruncatedPowerLaw
LowerTruncatedPowerLaw
They are named in such way to avoid confusion with
TwoSidedTruncated*
andLeftTruncated*
distributions.