|
Algorithm 4: PE [34] |
|
Input: The time series , the embedding dimension . |
|
Output: PE (, ). |
|
Define:
is the k-th permutation of , time delay = 1. |
| 1: function PE (, ) |
| 2: PE0 |
| 3: Nlength () |
| 4:
|
| 5:
|
| 6:
|
| 7:
|
| 8: for j = 0= N
do
|
| 9:
|
| 10:
|
| 11: for
i = 0 =
do
|
| 12: if
then
|
| 13:
|
| 14: break
|
| 15: end for
|
| 16: end for
|
| 17: for k = 0 = do |
| 18:
|
| 19: if then |
| 20:
|
| 21: end if
|
| 22: end for
|
| 23: return PE
|
| 24: end function
|