I do not know if this is the right forum to ask, but I try to compute Dimitrovs spectral fatigue index in python using a pre-written script to compute mean power frequency. As these two are mathematically similiar using different spectral moments, I thougth I could use the same script changing the moments. Does anybody have experience computing FInms5 and could provide me help?

Attached there is the python script with the mean frequency function and a trial of using it to compute FInms5 giving me an array with inf values

Similar questions and discussions