Non-empty box counting algorithm for calculating fractal dimensions and its applications in EEG analysis