Maxwell#
- class pymc_extras.distributions.Maxwell(name, a, **kwargs)[source]#
The Maxwell-Boltzmann distribution
The pdf of this distribution is
\[f(x \mid a) = {\displaystyle {\sqrt {\frac {2}{\pi }}}\,{\frac {x^{2}}{a^{3}}}\,\exp \left({\frac {-x^{2}}{2a^{2}}}\right)}\]Read more about it on Wikipedia
(
Source code
,png
,hires.png
,pdf
)Support
\(x \in (0, \infty)\)
Mean
\(2a \sqrt{\frac{2}{\pi}}\)
Variance
\(\frac{a^2(3 \pi - 8)}{\pi}\)
- Parameters:
a (tensor_like of float) – Scale parameter (a > 0).
- __init__()#
Methods
__init__
()dist
(a, **kwargs)maxwell_dist
(a, size)