I want to generate a continuous distribution (type Maxwell-Boltzmann) with Python. I mean, I want to create the distribution in order to generate random values.
This link kinda helps:
Create a continuous distribution in python
I don't have idea where to start, I know the analytical function that generates the distribution but I don't know how to implement that. Can anyone help me?
Thanks in advance
scipy has a Maxwell-Boltzmann distribution built-in, maxwell
, and its pdf
method will give you the probability density function.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With