Hello Raphael,
I analyzed the formula for the spectral entropy.
You provide 2 methods: periodogram and welch
However, periodogram is unstable and leads sometimes to Nan/Infinity due to the log2 computation.
In order to improve this formula, I would advice you to:
- add a note for the use of periodogram
- add a default value to 1 for the sampling frequency
Best, -MH
Hello Raphael,
I analyzed the formula for the spectral entropy.
You provide 2 methods: periodogram and welch
However, periodogram is unstable and leads sometimes to Nan/Infinity due to the log2 computation.
In order to improve this formula, I would advice you to:
Best, -MH