atomic_percent (list of float or list of signals) – The atomic fractions (composition) of the sample.
elements (list of str) – A list of element abbreviations, e.g. [‘Al’,’Zn’]. If elements is
‘auto’, take the elements in en each signal metadata of the
atomic_percent list.
The density of the elements is retrieved from an internal database. The
calculation is only valid if there is no interaction between the
components.
Parameters:
weight_percent (list of float or list of signals) – A list of weight percent for the different elements. If the total
is not equal to 100, each weight percent is divided by the sum
of the list (normalization).
elements (list of str) – A list of element symbols, e.g. [‘Al’, ‘Zn’]. If elements is ‘auto’,
take the elements in en each signal metadata of the weight_percent
list.
mean ('harmonic' or 'weighted') – The type of mean use to estimate the density.
Default is 'harmonic'.
Calculate the mass absorption coefficient for X-ray absorbed in a
mixture of elements.
The mass absorption coefficient is calculated as a weighted mean of the
weight percent and is retrieved from the database of Chantler et al. [†].
Parameters:
weight_percent (list of float or list of signals) – The composition of the absorber(s) in weight percent. The first
dimension of the matrix corresponds to the elements.
elements (list of str or 'auto') – The list of element symbol of the absorber, e.g. [‘Al’,’Zn’]. If
elements is ‘auto’, take the elements in each signal metadata of the
weight_percent list.
energies (list of float or list of str or 'auto') – The energy or energies of the X-ray in keV, or the name of the X-rays,
e.g. ‘Al_Ka’. If ‘auto’, take the lines in each signal metadata of the
weight_percent list.
Convert weight percent (wt%) to atomic percent (at.%).
Parameters:
weight_percent (list of float or list of signals) – The weight fractions (composition) of the sample.
elements (list of str) – A list of element abbreviations, e.g. [‘Al’,’Zn’]. If elements is
‘auto’, take the elements in en each signal metadata of th
weight_percent list.