- 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[int, ...]
Either the size (
int) or shape (tuple) of the returned energy array. Iftis an iterable/array, its shape must be appended to the desired shape of the random samples.
- Returns:
-
- exndarray
Random energies $E_x$ (eV).