Building the field as a sum of sinusoids with random amplitudes and uniform random phases gives C(h) = sum_j sigma_j^2 cos(w_j h) (eq 2.27), and in the limit C(h) = int cos(w h) s(w) dw with inverse s(w) = (1 / 2pi) int cos(w h) C(h) dh. Both C and s are even, so only cosine terms survive.
Details
Both integrals are numerical. The omega grid cannot outrun the h grid:
cos(w h) sampled at spacing dh aliases above the Nyquist frequency
pi / dh, and integrating past it sums noise rather than tail mass, so
a wider range makes the answer worse. The range is capped there and
the limit reported; integrated_density must equal C(0), and the
shortfall is the tail truncated away.
