kk.fft module

Functions to compute Kramers-Kronig relations through Fourier transforms.

kk.fft.pure2kk(a, n=None, axis=-1)[source]

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.

kk.fft.pure2rkk(a, n=None, axis=-1)[source]

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.