fraunhoferportugal / tsfel

An intuitive library to extract features from time series.
https://tsfel.readthedocs.io
BSD 3-Clause "New" or "Revised" License
905 stars 143 forks source link

Absolute Energy and Autocorrelation with equal value #142

Closed JoanaSofia closed 5 months ago

JoanaSofia commented 9 months ago

Hi, I noticed that both the absolute energy and the autocorrelation of the signals return the same value, which seems unusual. I believe they should differ. Could you please look into this?

Thank you in advance!

dmfolgado commented 9 months ago

Hi Joana,

The issue is arising from the current implementation of the autocorrelation. We will improve it in the next release.

dmfolgado commented 9 months ago

I am currently working on this improvement. The autocorrelation feature will now utilize the ACF (Autocorrelation Function) from the statsmodels library. My plan involves extracting the time constant (τ), defined as the point where the autocorrelation falls to 1/e of its initial value. Below are some tests:

MicrosoftTeams-image

dmfolgado commented 5 months ago

This issue was fixed in v.0.1.7