qspec logo qspec logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2026 Patrick Müller. All rights reserved.

qspec.models. VoigtDerivative  (   )[source]

The first derivative of a Voigt peak function

$$\begin{aligned} f(x, \Gamma, \sigma) &= -\frac{\sqrt{2}\delta\nu}{\sigma}\frac{\mathrm{Re}[z w(z)]} {\mathrm{Re}[w(\mathrm{i}\Gamma/(\sqrt{8}\sigma))]}, \quad z = \frac{2x + \mathrm{i}\Gamma}{\sqrt{8}\sigma}\\[2ex] \delta\nu &= 0.5346\Gamma + \sqrt{0.2166\Gamma^2 + \sigma^2}, \end{aligned}$$

with the complex Faddeeva function $w$ and the parameters Gamma (the FWHM $\Gamma$ of the Lorentzian) and sigma (the standard deviation $\sigma$ of the Gaussian).

Attributes:
descriptionstr

A description of the model hierarchy, e.g., "Offset.Summed[0].Hyperfine.Voigt".

dxfloat

A hint for an x-axis step size for a smooth display of the model.

errorstr

An error message if there is an issue with the model parameters (not implemented).

fixeslist[fix_type]

The fix states of the parameters, see Model.set_fix.

linkslist[bool]

Whether the parameters are linked to the parameters with the same name in a Linked model.

modelModel | None

The submodel.

nameslist[str]

The names of the parameters.

pdict[str, int]

A map of the parameter names to their indexes.

sizeint

The number of parameters required by the model.

typestr

The name of the model type.

valslist[float]

The current values of the parameters.