(score_list)
| 3 | import json |
| 4 | |
| 5 | def cal_std(score_list): |
| 6 | total_length = len(score_list) |
| 7 | run1_list = score_list[::3] |
| 8 | run2_list = score_list[1::3] |
| 9 | run3_list = score_list[2::3] |
| 10 | |
| 11 | mean = sum(score_list)/total_length |
| 12 | mean1 = sum(run1_list)/(total_length/3) |
| 13 | mean2 = sum(run2_list)/(total_length/3) |
| 14 | mean3 = sum(run3_list)/(total_length/3) |
| 15 | |
| 16 | std = np.sqrt(((mean1-mean)**2 + (mean2-mean)**2 + (mean3-mean)**2)/3) |
| 17 | return std |
| 18 | |
| 19 | |
| 20 | path = "TCP_result.json" |