forrestbao / pyeeg

Python + EEG/MEG = PyEEG
GNU General Public License v3.0
241 stars 85 forks source link

Modification in Hjorth mobility and complexity #28

Open Nine-s opened 5 years ago

Nine-s commented 5 years ago

Hello, first thank you for this module! For the calculation of Hjorth mobility and complexity, I got NaN returned. It was because I was working with big numbers, TP has became negative and as a sqrt function is applied later on, the calculation was impossible. I have solved the problem by adding "dtype = object" when declaring numpy array so I have enough space to store those numbers. I hope it will help some poeple running this code!

forrestbao commented 5 years ago

Can you create a pull request?