kk.utils module

Utility functions.

kk.utils.pad(a, n, axis=-1)[source]

Pad a frequency response with zeros at lowest and highest frequencies.

Input should be ordered like numpy.fft.ifft function.

kk.utils.padr(a, n, axis=-1)[source]

Pad a frequency response with zeros at highest frequencies.

Input should be ordered like numpy.fft.irfft function.