Skip to content

Commit

Permalink
Updated RQ4 project names to use Tex command (gousiosg#33)
Browse files Browse the repository at this point in the history
* Updated project name to latex constant in table
  • Loading branch information
ameka4 authored Jan 10, 2023
1 parent fdb52d9 commit 934d3f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
8 changes: 3 additions & 5 deletions artifacts/experiments/RQ4/generateResults.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,9 @@ def main():
" \u00B1 " in str(v) else np.nan)).reset_index()
improved_mean = pd.DataFrame(proj_mean_and_std['Improved'].apply(lambda v: float(v.split(" \u00B1 ")[0]) if
" \u00B1 " in str(v) else np.nan)).reset_index()
print(project)
print(improved_mean)
print(vanilla_mean)

proj_stats = pd.merge(vanilla_mean, improved_mean, how='outer', on='index')[RAW_NAMES].reset_index()
#print(proj_stats)

final_dataset[project]['Overhead'] = proj_stats[['Improved']].values / proj_stats[['Vanilla']].values
overhead_stats = final_dataset[project]['Overhead'].copy().reset_index()

Expand Down Expand Up @@ -257,7 +255,7 @@ def main():
possibleCommand = s[0].strip()

if possibleCommand == '\HEADER':
outTable += '\\hline' + "\n" + '\multicolumn{' + c + '}{c}{\\' + s[1].strip()[7:].strip() + '}' + " \\\\\n" + '\\hline' + "\n"
outTable += '\\hline' + "\n" + '\multicolumn{' + c + '}{c}{\\' + s[1].strip()[7:].strip().replace("-", "") + '}' + " \\\\\n" + '\\hline' + "\n"
else:
outTable += line

Expand Down
8 changes: 4 additions & 4 deletions artifacts/output/rq4.tex
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
\begin{tabular}{lllll}
N & Property & Vanilla & Improved & Overhead \\
\hline
\multicolumn{5}{c}{convex} \\
\multicolumn{5}{c}{\convex} \\
\hline
1 & data & 38.90 ± 0.58 & nan & nan \\
2 & message & 35.27 ± 0.62 & 30.69 ± 0.63 & 0.87 \\
3 & primitive & 35.46 ± 0.52 & nan & nan \\
\textbf{} & \textbf{Average} & \textbf{36.54} & \textbf{30.69} & \textbf{0.87} \\
\hline
\multicolumn{5}{c}{jflex} \\
\multicolumn{5}{c}{\jflex} \\
\hline
4 & addSingleton & 34.73 ± 0.42 & 41.92 ± 0.78 & 1.21 \\
5 & contains & 34.34 ± 0.95 & 34.68 ± 0.86 & 1.01 \\
Expand All @@ -19,13 +19,13 @@
10 & addSingle & 34.34 ± 1.04 & 44.63 ± 1.17 & 1.30 \\
\textbf{} & \textbf{Average} & \textbf{34.40} & \textbf{39.44} & \textbf{1.15} \\
\hline
\multicolumn{5}{c}{mph-table} \\
\multicolumn{5}{c}{\mphtable} \\
\hline
11 & list & 10.07 ± 0.23 & 20.72 ± 3.13 & 2.06 \\
12 & naive & 10.07 ± 0.23 & 217.94 ± 15.96 & 21.64 \\
\textbf{} & \textbf{Average} & \textbf{10.07} & \textbf{119.33} & \textbf{11.85} \\
\hline
\multicolumn{5}{c}{rpki-commons} \\
\multicolumn{5}{c}{\rpkicommons} \\
\hline
13 & claiming & 24.51 ± 0.35 & nan & nan \\
14 & aspa & 22.85 ± 0.33 & nan & nan \\
Expand Down

0 comments on commit 934d3f2

Please sign in to comment.