Hello Mikolaj! Thank you a lot for your response. When I run this function on my raw data, the values seem very odd. They are extremely low and don’t seem to respresent the correct powers of each frequency. I stated as similar question here: Calculate spectral density including the values. Can you see the problem?