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 midpoints of r.

Parameters:
Returns:

rdf (scipp.DataArray) – 1D array representing \(\text{RDF}(r)\).

See also

ess.diffraction.pdf

Module with related functions.