Logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2025 Patrick Müller. All rights reserved.

qspec.normal_vx_rvs  (  m t size = 1  )[source]

Random sample velocity components $v_x$ from the Gaussian probability density function $$ \rho(v_x) = \sqrt{\frac{m}{2\pi k_\mathrm{B}T}}\exp\!\left(-\frac{mv_x^2}{2k_\mathrm{B}T}\right), $$ for a mass $m$ particle in thermal equilibrium at temperature $T$.

Parameters:
marray_like

The mass $m$ of the particle (u).

tarray_like

The temperature $T$ of the environment (K).

sizeint | tuple

Either the size (int) or shape (tuple) of the returned velocity array. If m or t is an iterable/array, their common shape must be appended to the desired shape of the random samples.

Returns:
vxndarray

Random velocities $v_x$ (m/s).

API navigation