From 728b3212689463a72bde333f92dc0dad4cae01ee Mon Sep 17 00:00:00 2001 From: Andreas Tsouchlos Date: Fri, 14 Jun 2024 08:32:21 +0200 Subject: [PATCH] Add more BP datapoints; Change plot legend --- letter.tex | 23 ++++++++-------- res/bp_20433484.csv | 67 +++++++++------------------------------------ 2 files changed, 25 insertions(+), 65 deletions(-) diff --git a/letter.tex b/letter.tex index bd6328d..f44dfb0 100644 --- a/letter.tex +++ b/letter.tex @@ -780,19 +780,9 @@ of memory and computational resources. width=\figwidth, height=\figheight, legend pos=north east, + legend cell align={left}, ylabel={BER (\lineintext{}), FER (\lineintext{dashed})}, ] - \addplot+[FERPlot, mark=o, mark options={solid}, scol0, forget plot] - table [x=SNR, y=FER, col sep=comma, - discard if gt={SNR}{9}] - {res/bp_20433484.csv}; - - \addplot+[BERPlot, mark=*, scol0] - table [x=SNR, y=BER, col sep=comma, - discard if gt={SNR}{7.5}] - {res/bp_20433484.csv}; - \addlegendentry{BP}; - \addplot+[FERPlot, mark=o, mark options={solid}, scol1, forget plot] table [x=SNR, y=FER, col sep=comma, discard if not={gamma}{0.05}, @@ -818,6 +808,17 @@ of memory and computational resources. discard if gt={SNR}{6.5}] {res/improved_ber_fer_dfr_20433484.csv}; \addlegendentry{Improved}; + + \addplot+[FERPlot, mark=o, mark options={solid}, scol0, forget plot] + table [x=SNR, y=FER, col sep=comma, + discard if gt={SNR}{9}] + {res/bp_20433484.csv}; + + \addplot+[BERPlot, mark=*, scol0] + table [x=SNR, y=BER, col sep=comma, + discard if gt={SNR}{7.5}] + {res/bp_20433484.csv}; + \addlegendentry{BP}; \end{axis} \end{tikzpicture} \fi diff --git a/res/bp_20433484.csv b/res/bp_20433484.csv index 8bea327..b686d9a 100644 --- a/res/bp_20433484.csv +++ b/res/bp_20433484.csv @@ -1,55 +1,14 @@ -SNR,FER, BER -1.0, 0.660130718954248 , 0.0852528713750873 , 201 -1.5, 0.404000000000000 , 0.0521189120809614 , 201 -2.0, 0.152567975830816 , 0.0205194201655138 , 201 -2.5, 0.0608433734939759 , 0.00596517145671054 , 201 -3.0, 0.0129470580694783 , 0.00123860830178510 , 201 -3.5, 0.00181828001512233 , 0.000157819883647122, 201 -4.0, 0.000220000000000000, 1.38446077628694e-05, 201 -4.5, 2.00000000000000e-05, 2.09803921568627e-06, 58 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +SNR,FER,BER,num_frame_errors +1.0, 0.654723127035831 , 0.0888101168806285 , 201 +1.5, 0.392578125000000 , 0.0482345281862745 , 201 +2.0, 0.182561307901907 , 0.0213175188331463 , 201 +2.5, 0.0620753551575046 , 0.00605856919667188 , 201 +3.0, 0.0130012936610608 , 0.00128034396164675 , 201 +3.5, 0.00176298778188070 , 0.000150054320523940, 201 +4.0, 0.000267259157615091, 1.51866607463458e-05, 201 +4.5, 5.33724908622844e-05, 1.98370100658768e-06, 201 +5.0, 1.34177489983751e-05, 3.66497875284852e-07, 201 +5.5, 4.12634778374169e-06, 1.04658123477986e-07, 201 +6.0, 1.08000000000000e-06, 2.41176470588235e-08, 108 +6.5, 3.60000000000000e-07, 8.62745098039216e-09, 36