- 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:
-
- ascalar_nd
An iterable of mass numbers $A$, corresponding to the isotopes of the given
xvalues.- a_refscalar_nd
An iterable of mass numbers $A_\mathrm{ref}$, corresponding to reference isotopes of the given
xvalues.- xscalar_nd
The unmodified input values for the given mass numbers
aanda_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"], setaxis=0to 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.
- kwargs
Additional keyword arguments are passed to
King.plot.
- Returns:
-
- (y, cov, cov_stat)tuple[ndarray, ndarray, ndarray]
The unmodified $y$ values calculated with the fit results and the given
xvalues.yhas shape(k, n)and includes the givenxvalues, wherekis the number of data points/isotopes andnis the dimension of the King plot. Also returns the total and the statistical covariance matrices of the results.
- Raises:
-
- ValueError
If no fit was performed yet.