aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation
diff options
context:
space:
mode:
Diffstat (limited to 'resources/tools/presentation')
-rw-r--r--resources/tools/presentation/generator_tables.py4
-rw-r--r--resources/tools/presentation/utils.py1
2 files changed, 3 insertions, 2 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index 9b9f09f4be..50a6623356 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -405,7 +405,7 @@ def table_performance_comparison(table, input_data):
item = [tbl_dict[tst_name]["name"], ]
if tbl_dict[tst_name]["ref-data"]:
data_t = remove_outliers(tbl_dict[tst_name]["ref-data"],
- outlier_constant=table["outlier-const"])
+ outlier_const=table["outlier-const"])
# TODO: Specify window size.
item.append(round(mean(data_t) / 1000000, 2))
item.append(round(stdev(data_t) / 1000000, 2))
@@ -413,7 +413,7 @@ def table_performance_comparison(table, input_data):
item.extend([None, None])
if tbl_dict[tst_name]["cmp-data"]:
data_t = remove_outliers(tbl_dict[tst_name]["cmp-data"],
- outlier_constant=table["outlier-const"])
+ outlier_const=table["outlier-const"])
# TODO: Specify window size.
item.append(round(mean(data_t) / 1000000, 2))
item.append(round(stdev(data_t) / 1000000, 2))
diff --git a/resources/tools/presentation/utils.py b/resources/tools/presentation/utils.py
index bc62268937..2fbf70cadc 100644
--- a/resources/tools/presentation/utils.py
+++ b/resources/tools/presentation/utils.py
@@ -67,6 +67,7 @@ def relative_change(nr1, nr2):
return float(((nr2 - nr1) / nr1) * 100)
+
def remove_outliers(input_list, outlier_const=1.5, window=14):
"""Return list with outliers removed, using split_outliers.