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.analyze. King.get_unmodified  (  a a_ref x axis = 0 show = False ** kwargs  )[source]

Calculate unknown isotope shifts/charge radii by using the King plot results.

Parameters:
andarray | Iterable

An Iterable of mass numbers $A$, corresponding to the isotopes of the given x values.

a_refndarray | Iterable

An Iterable of mass numbers $A_\mathrm{ref}$, corresponding to reference isotopes of the given x values.

xndarray | Iterable

The unmodified input values for the given mass numbers a and a_ref. These could be the unmodified isotope shifts $\delta\nu_x^{A,A_\mathrm{ref}}$. Must have shape (len(a), 2).

axisint

The vector component corresponding to the given input values. For example, in a $2$-dimensional fit with components ['D1', 'D2'], set axis=0 to use the isotope shifts of the D1-line to calculate those of the D2-line.

showbool

Whether to draw the calculated values in the King plot.

kwargsNone

Additional keyword arguments are passed to King.plot.

Returns:
(y, cov, cov_stat)(ndarray, ndarray, ndarray)

The unmodified $y$ values calculated with the fit results and the given x values. y has shape (k, n) and includes the given x values, where k is the number of data points/isotopes and n is the dimension of te King plot. Also returns the total and the statistical covariance matrix of the results.

API navigation