I am currently working with non-audio signals of which I would like to calculate the Cepstrum coefficients with Python so that I can use them with machine learning algorithms. That's probably a quite basic question, but somehow I'm struggling at this point.
I already found some packages in Python that can be used to calculate the MFCCs. However, since these refer to the Mel Frequency, they are unfortunately not suitable for my application.
I already found out that the cepstrum of the signal can be calculated in Python as follows (from this website):
powerspectrum = np.abs(np.fft.fft(signal))**2 cepstrum = np.fft.ifft(np.log(powerspectrum))
That's working so far. But with which formula do I get the (n first) cepstral coefficients?
(I know that I should apply a window function on the signal first - my question is mainly about the approach to calculate the cepstral coefficients)