aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_tables.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-02-16 13:13:51 +0100
committerTibor Frank <tifrank@cisco.com>2018-02-16 12:28:26 +0000
commit7e66a5f8d65db71da86cbf46ac51eb9f2bd0e440 (patch)
tree8b93725f52e0360a655951c09d1cc87dc1dc6a19 /resources/tools/presentation/generator_tables.py
parent8b019f2a8b2973c813aaaafae0819c4656bb53aa (diff)
CSIT-932: Remove outliers form statistical calculations
Change-Id: Ibd90931bdc3dd8615fe2c975935c8a54fe85e6c3 Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit 3cb49d761fa32c84ea7b6b9ba9d6c874dff2921a)
Diffstat (limited to 'resources/tools/presentation/generator_tables.py')
-rw-r--r--resources/tools/presentation/generator_tables.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index f55c41ecf7..76254c86dd 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -402,16 +402,20 @@ def table_performance_comparison(table, input_data):
item = [tbl_dict[tst_name]["name"], ]
if tbl_dict[tst_name]["ref-data"]:
item.append(round(mean(remove_outliers(
- tbl_dict[tst_name]["ref-data"], 2)) / 1000000, 2))
+ tbl_dict[tst_name]["ref-data"],
+ table["outlier-const"])) / 1000000, 2))
item.append(round(stdev(remove_outliers(
- tbl_dict[tst_name]["ref-data"], 2)) / 1000000, 2))
+ tbl_dict[tst_name]["ref-data"],
+ table["outlier-const"])) / 1000000, 2))
else:
item.extend([None, None])
if tbl_dict[tst_name]["cmp-data"]:
item.append(round(mean(remove_outliers(
- tbl_dict[tst_name]["cmp-data"], 2)) / 1000000, 2))
+ tbl_dict[tst_name]["cmp-data"],
+ table["outlier-const"])) / 1000000, 2))
item.append(round(stdev(remove_outliers(
- tbl_dict[tst_name]["cmp-data"], 2)) / 1000000, 2))
+ tbl_dict[tst_name]["cmp-data"],
+ table["outlier-const"])) / 1000000, 2))
else:
item.extend([None, None])
if item[1] is not None and item[3] is not None: