Added plots as pgfplots
This commit is contained in:
@@ -32,6 +32,16 @@
|
||||
\usepackage{subfig}
|
||||
\usepackage{hyperref}
|
||||
\usepackage{booktabs}
|
||||
\usepackage{pgfplots}
|
||||
\usepackage{tikzscale}
|
||||
|
||||
% pgfplot defaults
|
||||
\pgfplotsset{compat=newest}
|
||||
\pgfplotsset{legend cell align=left}
|
||||
\pgfplotsset{major grid style=solid}
|
||||
\pgfplotsset{minor grid style=dashed}
|
||||
\pgfplotsset{every axis plot/.append style={line width=1pt}}
|
||||
|
||||
|
||||
%\updates{yes} % If there is an update available, un-comment this line
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ Due to the rarity of this problem we decided to repeat these faulty experiment r
|
||||
The access points are Intel NUCs running a patched Linux to enable FTM support.
|
||||
In total we're using eight APs based on Intel WiFi cards.
|
||||
Four of them are based on Intel Dualband-Wireless-AC~8260 cards configured as described by \etal{Ibrahim} \cite{ibrahim2018verification}.
|
||||
The remaining four are based on Intel Wireless-AC~9462 modules and run a recent Linux kernel where the iwlwifi driver and hostapd are already prepared to support FTM.
|
||||
The remaining four are based on Intel Wireless-AC~9462 modules and run a recent Linux kernel 5.3.7 where the iwlwifi driver and hostapd are already prepared to support FTM.
|
||||
However, the driver still requires small manual changes, as a global boolean flag needs to be set to activate the FTM related code.
|
||||
In addition, the firmware of the card returns that the chip is not calibrated for FTM.
|
||||
As a consequence the driver disables FTM responder functionality.
|
||||
@@ -172,20 +172,23 @@ Both the \pixelBoth produce similar results, but the \pixelOld tends to underest
|
||||
Opposed to \etal{Ibrahim} \cite{ibrahim2018verification} findings no single constant offset which significantly improves the measurements across all device combinations could be found in our tests.
|
||||
However, the overall error of the device combinations is reasonable small and its distribution is mostly Gaussian-like, which justifies the basic applicability of the technique and devices for indoor positioning.
|
||||
|
||||
\begin{figure}[ht]
|
||||
|
||||
\begin{minipage}{.5\textwidth}
|
||||
\begin{figure}[ht]
|
||||
\centering
|
||||
\subfloat[]{\label{fig:DistMeasMeanNucPixel:a}\includegraphics[width=0.8\textwidth]{DistMeasMeanPerPixel.png}}
|
||||
\end{minipage}%
|
||||
\begin{minipage}{.5\textwidth}
|
||||
\begin{minipage}{.45\textwidth}
|
||||
\centering
|
||||
\subfloat[]{\label{fig:DistMeasMeanNucPixel:b}\includegraphics[width=0.8\textwidth]{DistMeasMeanPerNuc.png}}
|
||||
\subfloat[]{\label{fig:DistMeasMeanNucPixel:a}\includegraphics[width=\textwidth]{plots/MeanDistPixel.pgf}}
|
||||
\end{minipage}\hspace{.09\textwidth}
|
||||
\begin{minipage}{.45\textwidth}
|
||||
\centering
|
||||
\subfloat[]{\label{fig:DistMeasMeanNucPixel:b}\includegraphics[width=\textwidth]{plots/MeanDistIntel.pgf}}
|
||||
\end{minipage}\par\medskip
|
||||
\centering
|
||||
\subfloat[CDF of error]{\label{fig:DistMeasMeanNucPixel:c}\includegraphics[width=\textwidth]{DistMeasCDF.png}}
|
||||
|
||||
\caption{my fig}
|
||||
\subfloat[]{\label{fig:DistMeasMeanNucPixel:c}%
|
||||
\input{plots/DistErrorCdf.pgf}%
|
||||
%\includegraphics[width=\textwidth,axisratio=2.3]{plots/DistErrorCdf.pgf}%
|
||||
}
|
||||
\caption{\ref{fig:DistMeasMeanNucPixel:a}, \ref{fig:DistMeasMeanNucPixel:b} show the mean distance per smartphone and per access point, respectively. \ref{fig:DistMeasMeanNucPixel:c} is the CDF of the measurement error for each device combination.}
|
||||
\label{fig:DistMeasMeanNucPixel}
|
||||
\end{figure}
|
||||
|
||||
|
||||
33
tex/plots/DistErrorCdf.pgf
Normal file
33
tex/plots/DistErrorCdf.pgf
Normal file
@@ -0,0 +1,33 @@
|
||||
\begin{tikzpicture}
|
||||
\definecolor{cdfPlot1}{rgb}{1,0,0}
|
||||
\definecolor{cdfPlot2}{rgb}{1,0.25,0}
|
||||
\definecolor{cdfPlot3}{rgb}{1,0.5,0}
|
||||
\definecolor{cdfPlot4}{rgb}{1,0.75,0}
|
||||
\definecolor{cdfPlot5}{rgb}{0,0,1}
|
||||
\definecolor{cdfPlot6}{rgb}{0,0.333,0.833}
|
||||
\definecolor{cdfPlot7}{rgb}{0,0.666,0.666}
|
||||
\definecolor{cdfPlot8}{rgb}{0,1,0.5}
|
||||
\begin{axis}[
|
||||
scale only axis,
|
||||
width=0.8\textwidth,
|
||||
height=0.4\textwidth,
|
||||
xlabel ={Distance error in \si{\meter}},
|
||||
ylabel ={CDF},
|
||||
legend pos=south east,
|
||||
xmajorgrids=true,
|
||||
%xminorgrids=true,
|
||||
ymajorgrids=true,
|
||||
%yminorgrids=true,
|
||||
enlarge x limits=false,
|
||||
enlarge y limits=false,
|
||||
]
|
||||
\addplot [color=cdfPlot1, dashed] table[x=X,y=Y,col sep=comma]{plots/data/1AC8260IntPixel2.csv}; \addlegendentry{AC 8260 int Pixel 2}
|
||||
\addplot [color=cdfPlot2, solid ] table[x=X,y=Y,col sep=comma]{plots/data/2AC8260IntPixel3.csv}; \addlegendentry{AC 8260 int Pixel 3}
|
||||
\addplot [color=cdfPlot3, dashed] table[x=X,y=Y,col sep=comma]{plots/data/3AC82602dBiPixel2.csv}; \addlegendentry{AC 8260 2dBi Pixel 2}
|
||||
\addplot [color=cdfPlot4, solid ] table[x=X,y=Y,col sep=comma]{plots/data/4AC82602dBiPixel3.csv}; \addlegendentry{AC 8260 2dBi Pixel 3}
|
||||
\addplot [color=cdfPlot5, dashed] table[x=X,y=Y,col sep=comma]{plots/data/5AC9462IntPixel2.csv}; \addlegendentry{AC 9462 int Pixel 2}
|
||||
\addplot [color=cdfPlot6, solid ] table[x=X,y=Y,col sep=comma]{plots/data/6AC9462IntPixel3.csv}; \addlegendentry{AC 9462 int Pixel 3}
|
||||
\addplot [color=cdfPlot7, dashed] table[x=X,y=Y,col sep=comma]{plots/data/7AC94622dBiPixel2.csv}; \addlegendentry{AC 9462 2dBi Pixel 2}
|
||||
\addplot [color=cdfPlot8, solid ] table[x=X,y=Y,col sep=comma]{plots/data/8AC94622dBiPixel3.csv}; \addlegendentry{AC 9462 2dBi Pixel 3}
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
||||
29
tex/plots/MeanDistIntel.pgf
Normal file
29
tex/plots/MeanDistIntel.pgf
Normal file
@@ -0,0 +1,29 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
xlabel ={True distance in \si{\meter}},
|
||||
ylabel ={Mean distance in \si{\meter}},
|
||||
legend pos=north west,
|
||||
xmajorgrids=true,
|
||||
%xminorgrids=true,
|
||||
ymajorgrids=true,
|
||||
%yminorgrids=true,
|
||||
minor tick num=4,
|
||||
xmin=0,
|
||||
ymin=0,
|
||||
xtick={0,4,8,12,16,20},
|
||||
ytick={0,4,8,12,16,20,24}
|
||||
]
|
||||
% Groundtruth
|
||||
\addplot [color=black] %
|
||||
table[x=GT,y=GT,col sep=comma]{plots/data/intelmeanrange.csv};
|
||||
\addlegendentry{Groundtruth}
|
||||
% Pixel 2 XL
|
||||
\addplot [color=red, mark=x] %
|
||||
table[x=GT,y=N6Mean,col sep=comma]{plots/data/intelmeanrange.csv};
|
||||
\addlegendentry{\intelOld}
|
||||
% Pixel 3a
|
||||
\addplot [color=blue, mark=x] %
|
||||
table[x=GT,y=N7Mean,col sep=comma]{plots/data/intelmeanrange.csv};
|
||||
\addlegendentry{\intelNew}
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
||||
29
tex/plots/MeanDistPixel.pgf
Normal file
29
tex/plots/MeanDistPixel.pgf
Normal file
@@ -0,0 +1,29 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
xlabel ={True distance in \si{\meter}},
|
||||
ylabel ={Mean distance in \si{\meter}},
|
||||
legend pos=north west,
|
||||
xmajorgrids=true,
|
||||
%xminorgrids=true,
|
||||
ymajorgrids=true,
|
||||
%yminorgrids=true,
|
||||
minor tick num=4,
|
||||
xmin=0,
|
||||
ymin=0,
|
||||
xtick={0,4,8,12,16,20},
|
||||
ytick={0,4,8,12,16,20,24}
|
||||
]
|
||||
% Groundtruth
|
||||
\addplot [color=black] %
|
||||
table[x=GT,y=GT,col sep=comma]{plots/data/pixelmeanrange.csv};
|
||||
\addlegendentry{Groundtruth}
|
||||
% Pixel 2 XL
|
||||
\addplot [color=red, mark=x] %
|
||||
table[x=GT,y=P2Mean,col sep=comma]{plots/data/pixelmeanrange.csv};
|
||||
\addlegendentry{\pixelOld}
|
||||
% Pixel 3a
|
||||
\addplot [color=blue, mark=x] %
|
||||
table[x=GT,y=P3Mean,col sep=comma]{plots/data/pixelmeanrange.csv};
|
||||
\addlegendentry{\pixelNew}
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
||||
BIN
tex/plots/data/1AC8260IntPixel2.csv
(Stored with Git LFS)
Normal file
BIN
tex/plots/data/1AC8260IntPixel2.csv
(Stored with Git LFS)
Normal file
Binary file not shown.
|
BIN
tex/plots/data/2AC8260IntPixel3.csv
(Stored with Git LFS)
Normal file
BIN
tex/plots/data/2AC8260IntPixel3.csv
(Stored with Git LFS)
Normal file
Binary file not shown.
|
BIN
tex/plots/data/3AC82602dBiPixel2.csv
(Stored with Git LFS)
Normal file
BIN
tex/plots/data/3AC82602dBiPixel2.csv
(Stored with Git LFS)
Normal file
Binary file not shown.
|
BIN
tex/plots/data/4AC82602dBiPixel3.csv
(Stored with Git LFS)
Normal file
BIN
tex/plots/data/4AC82602dBiPixel3.csv
(Stored with Git LFS)
Normal file
Binary file not shown.
|
BIN
tex/plots/data/5AC9462IntPixel2.csv
(Stored with Git LFS)
Normal file
BIN
tex/plots/data/5AC9462IntPixel2.csv
(Stored with Git LFS)
Normal file
Binary file not shown.
|
BIN
tex/plots/data/6AC9462IntPixel3.csv
(Stored with Git LFS)
Normal file
BIN
tex/plots/data/6AC9462IntPixel3.csv
(Stored with Git LFS)
Normal file
Binary file not shown.
|
BIN
tex/plots/data/7AC94622dBiPixel2.csv
(Stored with Git LFS)
Normal file
BIN
tex/plots/data/7AC94622dBiPixel2.csv
(Stored with Git LFS)
Normal file
Binary file not shown.
|
BIN
tex/plots/data/8AC94622dBiPixel3.csv
(Stored with Git LFS)
Normal file
BIN
tex/plots/data/8AC94622dBiPixel3.csv
(Stored with Git LFS)
Normal file
Binary file not shown.
|
BIN
tex/plots/data/intelmeanrange.csv
(Stored with Git LFS)
Normal file
BIN
tex/plots/data/intelmeanrange.csv
(Stored with Git LFS)
Normal file
Binary file not shown.
|
BIN
tex/plots/data/pixelmeanrange.csv
(Stored with Git LFS)
Normal file
BIN
tex/plots/data/pixelmeanrange.csv
(Stored with Git LFS)
Normal file
Binary file not shown.
|
Reference in New Issue
Block a user