Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. for i in range(len(Zscore_list)):
  2. if len(Pos_list) != 0:
  3. if Pos_list[i-1] == 1:
  4. if Zscore_list[i] < -Thre2:
  5. Pos_list.append(1)
  6. else:
  7. Pos_list.append(0)
  8. elif Pos_list[i-1] == -1:
  9. if Zscore_list[i] > Thre2:
  10. Pos_list.append(-1)
  11. else:
  12. Pos_list.append(0)
  13. elif Pos_list[i-1] == 0:
  14. if Zscore_list[i] > Thre:
  15. Pos_list.append(-1)
  16. elif Zscore_list[i] < -Thre:
  17. Pos_list.append(1)
  18. else:
  19. Pos_list.append(0)
  20. else:
  21. if Zscore_list[i] > Thre:
  22. Pos_list.append(-1)
  23. elif Zscore_list[i] < -Thre:
  24. Pos_list.append(1)
  25. else:
  26. Pos_list.append(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement