Skip to main content
. 2019 May 15;21(5):499. doi: 10.3390/e21050499
Algorithm 1. Adjusted TOP method based on pruning and path segmentation algorithm
Pruning and Path Segmentation algorithm
  1. Construct local distance matrix ε(t1,i,t2,j), for i, j = 0,1,2,…,n;

  2. Use formula (15) to determine the average thermal optimal path x(t), when the maximum value of independent variable i of g(i,t − i) used in (15) to compute x(t) is less than n*.

  3. Use formula (A12) in Appendix to determine the average thermal optimal path x(t),when the maximum value of independent variable i of g(i,ti) used in (15) to compute x(t) is between n* and n* + n1β.

  4. Use formula (A14) in Appendix to determine the average thermal optimal path x(t),when the maximum value of independent variable i of g(i,t − i) used in (15) to compute x(t) is between n* + n1β and n.

Note: the concrete definition and description of n*, n1 in Algorithm 1 can be funded in Appendix. In the following empirical study, n = 1249 (time-series data size) and we set n1 = 420 (a partition coefficient), n* = 510 (a threshold), and β = 30 (the possible maximum lag). Furthermore, the adjusted TOP method and existing TOP are the same for the case of small data (small time-series data size).