- qspec.chi2_ex_rvs ( t , size = 1 )[source]
Random sample energy components $E_x$ from the $\chi^2_1$ probability density function $$ \rho(E_x) = \sqrt{\frac{1}{\pi E_xk_\mathrm{B}T}}\exp\left(-\frac{E_x}{k_\mathrm{B}T}\right), $$ in thermal equilibrium at temperature $T$.
- Parameters:
-
- tarray_like
The temperature $T$ of the environment (K).
- sizeint | tuple
Either the size (
int
) or shape (tuple
) of the returned velocity array. Ifm
ort
is an iterable/array, their common shape must be appended to the desired shape of the random samples.
- Returns:
-
- vxndarray
Random energies $E_x$ (m/s).