Sqw_Sq: compute the structure factor The structure factor is the integral of the dynamic structure factor along the energy axis. It is representative of the material structure. Its Fourier transform is the pair distribution function g(r). The S(q,w) is a dynamic structure factor aka scattering function. This function is basically a call to trapz(s,1) input: s: Sqw data set e.g. 2D data set with w as 1st axis (rows, meV), q as 2nd axis (Angs-1). References: Fischer, Barnes and Salmon, Rev Prog Phys 69 (2006) 233 Example: s = Sqw_Sq(s); (c) E.Farhi, ILL. License: EUPL.