Reference:
Functions to compute Kramers-Kronig relations through Fourier transforms.
kk.fft.
pure2kk
Compute frequency response function of a complex-valued time response.
Input should be its real or 1j*imaginary part. Input should be ordered like numpy.fft.ifft function.
pure2rkk
Compute frequency response function of a real-valued time response.
Input should be its real or 1j*imaginary part. Input should be ordered like numpy.fft.irfft function. Note that the frequency response function is hermitian symmetric.