Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i in range(len(Zscore_list)):
- if len(Pos_list) != 0:
- if Pos_list[i-1] == 1:
- if Zscore_list[i] < -Thre2:
- Pos_list.append(1)
- else:
- Pos_list.append(0)
- elif Pos_list[i-1] == -1:
- if Zscore_list[i] > Thre2:
- Pos_list.append(-1)
- else:
- Pos_list.append(0)
- elif Pos_list[i-1] == 0:
- if Zscore_list[i] > Thre:
- Pos_list.append(-1)
- elif Zscore_list[i] < -Thre:
- Pos_list.append(1)
- else:
- Pos_list.append(0)
- else:
- if Zscore_list[i] > Thre:
- Pos_list.append(-1)
- elif Zscore_list[i] < -Thre:
- Pos_list.append(1)
- else:
- Pos_list.append(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement