Commit adbb6f91 authored by Ivan Tyagov's avatar Ivan Tyagov

Show standard deviation in %.

parent 5d053bba
...@@ -64,6 +64,7 @@ for line in lines_list[1:]: ...@@ -64,6 +64,7 @@ for line in lines_list[1:]:
channel0_mean = statistics.mean(timestamp_channel0_delta_list) channel0_mean = statistics.mean(timestamp_channel0_delta_list)
channel0_median = statistics.median(timestamp_channel0_delta_list) channel0_median = statistics.median(timestamp_channel0_delta_list)
channel0_stdev = statistics.stdev(timestamp_channel0_delta_list) channel0_stdev = statistics.stdev(timestamp_channel0_delta_list)
channel0_stdev_percentile = (channel0_stdev*100)/channel0_median
try: try:
channel0_mode = statistics.mode(timestamp_channel0_delta_list) channel0_mode = statistics.mode(timestamp_channel0_delta_list)
except statistics.StatisticsError: except statistics.StatisticsError:
...@@ -74,6 +75,7 @@ channel0_max = max(timestamp_channel0_delta_list) ...@@ -74,6 +75,7 @@ channel0_max = max(timestamp_channel0_delta_list)
channel1_mean = statistics.mean(timestamp_channel1_delta_list) channel1_mean = statistics.mean(timestamp_channel1_delta_list)
channel1_median = statistics.median(timestamp_channel1_delta_list) channel1_median = statistics.median(timestamp_channel1_delta_list)
channel1_stdev = statistics.stdev(timestamp_channel1_delta_list) channel1_stdev = statistics.stdev(timestamp_channel1_delta_list)
channel1_stdev_percentile = (channel1_stdev*100)/channel1_median
try: try:
channel1_mode = statistics.mode(timestamp_channel1_delta_list) channel1_mode = statistics.mode(timestamp_channel1_delta_list)
except statistics.StatisticsError: except statistics.StatisticsError:
...@@ -91,6 +93,7 @@ print("\tMedian = ", channel0_median) ...@@ -91,6 +93,7 @@ print("\tMedian = ", channel0_median)
print("\tMin = ", channel0_min) print("\tMin = ", channel0_min)
print("\tMax = ", channel0_max) print("\tMax = ", channel0_max)
print("\tStandart deviation = ", channel0_stdev) print("\tStandart deviation = ", channel0_stdev)
print("\tStandart deviation (%) = ", channel0_stdev_percentile)
print("\tMode (most occurencies) = ", channel0_mode) print("\tMode (most occurencies) = ", channel0_mode)
print("\nChannel1 (in seconds):") print("\nChannel1 (in seconds):")
...@@ -99,6 +102,7 @@ print("\tMedian = ", channel1_median) ...@@ -99,6 +102,7 @@ print("\tMedian = ", channel1_median)
print("\tMin = ", channel1_min) print("\tMin = ", channel1_min)
print("\tMax = ", channel1_max) print("\tMax = ", channel1_max)
print("\tStandart deviation = ", channel1_stdev) print("\tStandart deviation = ", channel1_stdev)
print("\tStandart deviation (%) = ", channel1_stdev_percentile)
print("\tMode (most occurencies) = ", channel1_mode) print("\tMode (most occurencies) = ", channel1_mode)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment