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.thermal_v_rvs  (  m t size = 1  )[source]

Parameters:
marray_like

The mass of the ensembles bodies (u).

tarray_like

The temperature of the ensemble (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:
outarray_like

Random velocities according to the thermal equilibrium distribution (m/s).

API navigation