ess.diffraction.pdf.radial_distribution_function#
- ess.diffraction.pdf.radial_distribution_function(g, *, atomic_density)[source]#
Compute the radial distribution function from a pair distribution function.
Computes the radial distribution function
\[\text{RDF}(r) = 4 \pi r^2 \rho g(r)\]where \(g(r)\) is the
pair_distribution_function()and \(\rho\) is the atomic density.\(\text{RDF}\) and \(g\) are both defined on bin-edges in \(r\). The \(r^2\) factor is computed on the
midpointsofr.- Parameters:
g (
DataArray) –Pair distribution function\(g(r)\).atomic_density (
Variable) – The atomic density \(\rho\) of the material.
- Returns:
rdf (
scipp.DataArray) – 1D array representing \(\text{RDF}(r)\).
See also
ess.diffraction.pdfModule with related functions.