Defining the total scattering functions