Return either time or frequency domain response.
This uses the Fourier transform defined as:
..math:
\mathcal{F}(f(t)) = \int_{-\infty}^{\infty} \mathrm{d}t\, f(t) e^{i\omega t}