Closed SemyonSinchenko closed 8 months ago
@jeffbrennan I went though the issue and see that we discussed that this part will be used like quinn.math
. What do you think about it? In this case it is not needed to add it to __init__.py
@SemyonSinchenko
Yeah looks good then. Thanks for checking that
On branch feature/random-fenerators Changes to be committed: new file: quinn/math.py
Related to #88
I have no idea how to test generation of random numbers without installing
numpy
. But I made few local tests and looks like it works.There is the result of![laplace_m5_4](https://github.com/MrPowers/quinn/assets/29755009/06f56fde-31a1-4832-ae4d-6df6f0e822f0)
rand_laplace(mu=-5, beta=4)
:There is the result of![laplace_1_2](https://github.com/MrPowers/quinn/assets/29755009/e23ffbb4-1e5f-4804-a9d4-ce043f445959)
rand_laplace(mu=1, beta=2)
:And there is how it should look like based on Wiki:![image](https://github.com/MrPowers/quinn/assets/29755009/5bb6e303-6aee-46d3-8748-72b2c353c627)
One can see that distribution is correct. Also negative mu is processed correctly too.