Nice plot

This commit is contained in:
Quentin Dufour 2020-01-14 17:16:34 +00:00
parent e11c72ed7a
commit 77bf180634

View file

@ -47,9 +47,14 @@ def analyze_failure(s):
v = sorted(v)
total = len(v)
rate = round(1000 / k)
score = 0
f.write(f"{rate},0,0\n")
for idx,e in enumerate(v,start=1):
if e == 90: break
f.write(f"{rate},{e},{idx/total}\n")
if e >= 90:
f.write(f"{rate},90,{score}\n")
break
score = idx/total
f.write(f"{rate},{e},{score}\n")
def analyze(s):
print("analyzing...")