|
Algorithm 1 Multiscale entropy (MSE) computation |
For each EEG channel, define a TS as where ℓ is the number of EEG samples.
Fix m, the length of compared sub vectors
Choose , , , the minimum, maximum and increment values, resp., of the subsample vector .
for = to
step
do
Subsample X for
Fix q sub TS from each EEG channel as ,…, .
for i=1 to q do
Determine a variable threshold for each sub TS, according to
Construct a sequence of m-long vectors as , , …, as
From the sequence z, calculate the number of such that its distance
For , calculate the number of distances (denoted as #) within threshold as
Calculate the logarithmic average ln
For each sub TS vector, compute = ln
Determine the average of all and name it
end for
end for
Plot vs. MSE
|