Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Project: PHYS
Views: 3033
1
2
% Default to the notebook output style
3
4
5
6
7
% Inherit from the specified cell style.
8
9
10
11
12
13
\documentclass[11pt]{article}
14
15
\linespread{2.2}
16
17
\usepackage[T1]{fontenc}
18
% Nicer default font (+ math font) than Computer Modern for most use cases
19
\usepackage{mathpazo}
20
21
% Basic figure setup, for now with no caption control since it's done
22
% automatically by Pandoc (which extracts ![](path) syntax from Markdown).
23
\usepackage{graphicx}
24
% We will generate all images so they have a width \maxwidth. This means
25
% that they will get their normal width if they fit onto the page, but
26
% are scaled down if they would overflow the margins.
27
\makeatletter
28
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth
29
\else\Gin@nat@width\fi}
30
\makeatother
31
\let\Oldincludegraphics\includegraphics
32
% Set max figure width to be 80% of text width, for now hardcoded.
33
\renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=.8\maxwidth]{#1}}
34
% Ensure that by default, figures have no caption (until we provide a
35
% proper Figure object with a Caption API and a way to capture that
36
% in the conversion process - todo).
37
\usepackage{caption}
38
\DeclareCaptionLabelFormat{nolabel}{}
39
\captionsetup{labelformat=nolabel}
40
41
\usepackage{adjustbox} % Used to constrain images to a maximum size
42
\usepackage{xcolor} % Allow colors to be defined
43
\usepackage{enumerate} % Needed for markdown enumerations to work
44
\usepackage{geometry} % Used to adjust the document margins
45
\usepackage{amsmath} % Equations
46
\usepackage{amssymb} % Equations
47
\usepackage{textcomp} % defines textquotesingle
48
% Hack from http://tex.stackexchange.com/a/47451/13684:
49
\AtBeginDocument{%
50
\def\PYZsq{\textquotesingle}% Upright quotes in Pygmentized code
51
}
52
\usepackage{upquote} % Upright quotes for verbatim code
53
\usepackage{eurosym} % defines \euro
54
\usepackage[mathletters]{ucs} % Extended unicode (utf-8) support
55
\usepackage[utf8x]{inputenc} % Allow utf-8 characters in the tex document
56
\usepackage{fancyvrb} % verbatim replacement that allows latex
57
\usepackage{grffile} % extends the file name processing of package graphics
58
% to support a larger range
59
% The hyperref package gives us a pdf with properly built
60
% internal navigation ('pdf bookmarks' for the table of contents,
61
% internal cross-reference links, web links for URLs, etc.)
62
\usepackage{hyperref}
63
\usepackage{longtable} % longtable support required by pandoc >1.10
64
\usepackage{booktabs} % table support for pandoc > 1.12.2
65
\usepackage[inline]{enumitem} % IRkernel/repr support (it uses the enumerate* environment)
66
\usepackage[normalem]{ulem} % ulem is needed to support strikethroughs (\sout)
67
% normalem makes italics be italics, not underlines
68
69
70
71
72
% Colors for the hyperref package
73
\definecolor{urlcolor}{rgb}{0,.145,.698}
74
\definecolor{linkcolor}{rgb}{.71,0.21,0.01}
75
\definecolor{citecolor}{rgb}{.12,.54,.11}
76
77
% ANSI colors
78
\definecolor{ansi-black}{HTML}{3E424D}
79
\definecolor{ansi-black-intense}{HTML}{282C36}
80
\definecolor{ansi-red}{HTML}{E75C58}
81
\definecolor{ansi-red-intense}{HTML}{B22B31}
82
\definecolor{ansi-green}{HTML}{00A250}
83
\definecolor{ansi-green-intense}{HTML}{007427}
84
\definecolor{ansi-yellow}{HTML}{DDB62B}
85
\definecolor{ansi-yellow-intense}{HTML}{B27D12}
86
\definecolor{ansi-blue}{HTML}{208FFB}
87
\definecolor{ansi-blue-intense}{HTML}{0065CA}
88
\definecolor{ansi-magenta}{HTML}{D160C4}
89
\definecolor{ansi-magenta-intense}{HTML}{A03196}
90
\definecolor{ansi-cyan}{HTML}{60C6C8}
91
\definecolor{ansi-cyan-intense}{HTML}{258F8F}
92
\definecolor{ansi-white}{HTML}{C5C1B4}
93
\definecolor{ansi-white-intense}{HTML}{A1A6B2}
94
95
% commands and environments needed by pandoc snippets
96
% extracted from the output of `pandoc -s`
97
\providecommand{\tightlist}{%
98
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
99
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}}
100
% Add ',fontsize=\small' for more characters per line
101
\newenvironment{Shaded}{}{}
102
\newcommand{\KeywordTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{{#1}}}}
103
\newcommand{\DataTypeTok}[1]{\textcolor[rgb]{0.56,0.13,0.00}{{#1}}}
104
\newcommand{\DecValTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{{#1}}}
105
\newcommand{\BaseNTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{{#1}}}
106
\newcommand{\FloatTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{{#1}}}
107
\newcommand{\CharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{{#1}}}
108
\newcommand{\StringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{{#1}}}
109
\newcommand{\CommentTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textit{{#1}}}}
110
\newcommand{\OtherTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{{#1}}}
111
\newcommand{\AlertTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{{#1}}}}
112
\newcommand{\FunctionTok}[1]{\textcolor[rgb]{0.02,0.16,0.49}{{#1}}}
113
\newcommand{\RegionMarkerTok}[1]{{#1}}
114
\newcommand{\ErrorTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{{#1}}}}
115
\newcommand{\NormalTok}[1]{{#1}}
116
117
% Additional commands for more recent versions of Pandoc
118
\newcommand{\ConstantTok}[1]{\textcolor[rgb]{0.53,0.00,0.00}{{#1}}}
119
\newcommand{\SpecialCharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{{#1}}}
120
\newcommand{\VerbatimStringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{{#1}}}
121
\newcommand{\SpecialStringTok}[1]{\textcolor[rgb]{0.73,0.40,0.53}{{#1}}}
122
\newcommand{\ImportTok}[1]{{#1}}
123
\newcommand{\DocumentationTok}[1]{\textcolor[rgb]{0.73,0.13,0.13}{\textit{{#1}}}}
124
\newcommand{\AnnotationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}}
125
\newcommand{\CommentVarTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}}
126
\newcommand{\VariableTok}[1]{\textcolor[rgb]{0.10,0.09,0.49}{{#1}}}
127
\newcommand{\ControlFlowTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{{#1}}}}
128
\newcommand{\OperatorTok}[1]{\textcolor[rgb]{0.40,0.40,0.40}{{#1}}}
129
\newcommand{\BuiltInTok}[1]{{#1}}
130
\newcommand{\ExtensionTok}[1]{{#1}}
131
\newcommand{\PreprocessorTok}[1]{\textcolor[rgb]{0.74,0.48,0.00}{{#1}}}
132
\newcommand{\AttributeTok}[1]{\textcolor[rgb]{0.49,0.56,0.16}{{#1}}}
133
\newcommand{\InformationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}}
134
\newcommand{\WarningTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}}
135
136
137
% Define a nice break command that doesn't care if a line doesn't already
138
% exist.
139
\def\br{\hspace*{\fill} \\* }
140
% Math Jax compatability definitions
141
\def\gt{>}
142
\def\lt{<}
143
% Document parameters
144
\title{Report}
145
146
147
148
149
% Pygments definitions
150
151
\makeatletter
152
\def\PY@reset{\let\PY@it=\relax \let\PY@bf=\relax%
153
\let\PY@ul=\relax \let\PY@tc=\relax%
154
\let\PY@bc=\relax \let\PY@ff=\relax}
155
\def\PY@tok#1{\csname PY@tok@#1\endcsname}
156
\def\PY@toks#1+{\ifx\relax#1\empty\else%
157
\PY@tok{#1}\expandafter\PY@toks\fi}
158
\def\PY@do#1{\PY@bc{\PY@tc{\PY@ul{%
159
\PY@it{\PY@bf{\PY@ff{#1}}}}}}}
160
\def\PY#1#2{\PY@reset\PY@toks#1+\relax+\PY@do{#2}}
161
162
\expandafter\def\csname PY@tok@kn\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
163
\expandafter\def\csname PY@tok@dl\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
164
\expandafter\def\csname PY@tok@cpf\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
165
\expandafter\def\csname PY@tok@gu\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.50,0.00,0.50}{##1}}}
166
\expandafter\def\csname PY@tok@sb\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
167
\expandafter\def\csname PY@tok@sx\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
168
\expandafter\def\csname PY@tok@c1\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
169
\expandafter\def\csname PY@tok@kc\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
170
\expandafter\def\csname PY@tok@gt\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.27,0.87}{##1}}}
171
\expandafter\def\csname PY@tok@se\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.73,0.40,0.13}{##1}}}
172
\expandafter\def\csname PY@tok@c\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
173
\expandafter\def\csname PY@tok@kp\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
174
\expandafter\def\csname PY@tok@fm\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
175
\expandafter\def\csname PY@tok@nn\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
176
\expandafter\def\csname PY@tok@na\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.49,0.56,0.16}{##1}}}
177
\expandafter\def\csname PY@tok@ge\endcsname{\let\PY@it=\textit}
178
\expandafter\def\csname PY@tok@mi\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
179
\expandafter\def\csname PY@tok@m\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
180
\expandafter\def\csname PY@tok@k\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
181
\expandafter\def\csname PY@tok@kr\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
182
\expandafter\def\csname PY@tok@nf\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
183
\expandafter\def\csname PY@tok@cs\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
184
\expandafter\def\csname PY@tok@mb\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
185
\expandafter\def\csname PY@tok@sd\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
186
\expandafter\def\csname PY@tok@s2\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
187
\expandafter\def\csname PY@tok@nc\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
188
\expandafter\def\csname PY@tok@s\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
189
\expandafter\def\csname PY@tok@vi\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
190
\expandafter\def\csname PY@tok@gs\endcsname{\let\PY@bf=\textbf}
191
\expandafter\def\csname PY@tok@nb\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
192
\expandafter\def\csname PY@tok@no\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.53,0.00,0.00}{##1}}}
193
\expandafter\def\csname PY@tok@sh\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
194
\expandafter\def\csname PY@tok@kd\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
195
\expandafter\def\csname PY@tok@mh\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
196
\expandafter\def\csname PY@tok@kt\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.69,0.00,0.25}{##1}}}
197
\expandafter\def\csname PY@tok@nt\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
198
\expandafter\def\csname PY@tok@ss\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
199
\expandafter\def\csname PY@tok@ni\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.60,0.60,0.60}{##1}}}
200
\expandafter\def\csname PY@tok@vg\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
201
\expandafter\def\csname PY@tok@il\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
202
\expandafter\def\csname PY@tok@gp\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}}
203
\expandafter\def\csname PY@tok@mo\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
204
\expandafter\def\csname PY@tok@ne\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.82,0.25,0.23}{##1}}}
205
\expandafter\def\csname PY@tok@sc\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
206
\expandafter\def\csname PY@tok@ch\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
207
\expandafter\def\csname PY@tok@o\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
208
\expandafter\def\csname PY@tok@nv\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
209
\expandafter\def\csname PY@tok@ow\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}}
210
\expandafter\def\csname PY@tok@mf\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
211
\expandafter\def\csname PY@tok@gh\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}}
212
\expandafter\def\csname PY@tok@err\endcsname{\def\PY@bc##1{\setlength{\fboxsep}{0pt}\fcolorbox[rgb]{1.00,0.00,0.00}{1,1,1}{\strut ##1}}}
213
\expandafter\def\csname PY@tok@gd\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.63,0.00,0.00}{##1}}}
214
\expandafter\def\csname PY@tok@cm\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
215
\expandafter\def\csname PY@tok@vm\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
216
\expandafter\def\csname PY@tok@vc\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
217
\expandafter\def\csname PY@tok@si\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}}
218
\expandafter\def\csname PY@tok@gi\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.63,0.00}{##1}}}
219
\expandafter\def\csname PY@tok@s1\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
220
\expandafter\def\csname PY@tok@nd\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}}
221
\expandafter\def\csname PY@tok@sr\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}}
222
\expandafter\def\csname PY@tok@cp\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.74,0.48,0.00}{##1}}}
223
\expandafter\def\csname PY@tok@sa\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
224
\expandafter\def\csname PY@tok@w\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.73,0.73}{##1}}}
225
\expandafter\def\csname PY@tok@bp\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
226
\expandafter\def\csname PY@tok@gr\endcsname{\def\PY@tc##1{\textcolor[rgb]{1.00,0.00,0.00}{##1}}}
227
\expandafter\def\csname PY@tok@go\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.53,0.53,0.53}{##1}}}
228
\expandafter\def\csname PY@tok@nl\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.63,0.63,0.00}{##1}}}
229
230
\def\PYZbs{\char`\\}
231
\def\PYZus{\char`\_}
232
\def\PYZob{\char`\{}
233
\def\PYZcb{\char`\}}
234
\def\PYZca{\char`\^}
235
\def\PYZam{\char`\&}
236
\def\PYZlt{\char`\<}
237
\def\PYZgt{\char`\>}
238
\def\PYZsh{\char`\#}
239
\def\PYZpc{\char`\%}
240
\def\PYZdl{\char`\$}
241
\def\PYZhy{\char`\-}
242
\def\PYZsq{\char`\'}
243
\def\PYZdq{\char`\"}
244
\def\PYZti{\char`\~}
245
% for compatibility with earlier versions
246
\def\PYZat{@}
247
\def\PYZlb{[}
248
\def\PYZrb{]}
249
\makeatother
250
251
252
% Exact colors from NB
253
\definecolor{incolor}{rgb}{0.0, 0.0, 0.5}
254
\definecolor{outcolor}{rgb}{0.545, 0.0, 0.0}
255
256
257
258
259
% Prevent overflowing lines due to hard-to-break entities
260
\sloppy
261
% Setup hyperref package
262
\hypersetup{
263
breaklinks=true, % so long urls are correctly broken across lines
264
colorlinks=true,
265
urlcolor=urlcolor,
266
linkcolor=linkcolor,
267
citecolor=citecolor,
268
}
269
% Slightly bigger margins than the latex defaults
270
271
\geometry{verbose,tmargin=1in,bmargin=1in,lmargin=1in,rmargin=1in}
272
273
274
275
\begin{document}
276
277
278
\maketitle
279
280
281
282
283
\begin{titlepage}
284
\begin{center}
285
\vspace*{1cm}
286
287
\textbf{Real Time Machine Learning Techniques for Wireless Techniques}
288
289
\vspace{0.5cm}
290
Thesis Subtitle
291
292
\vspace{1.5cm}
293
294
\textbf{Charles Meyers}
295
296
\vfill
297
298
\vspace{0.8cm}
299
300
Applied Math\
301
NYCCT\\
302
5/23/2018
303
304
\end{center}
305
\end{titlepage}
306
307
\subsection{Back Ground Information}\label{back-ground-information}
308
309
\subsubsection{Signal Processing}\label{signal-processing}
310
311
To even begin how to model a signal at a given point of space and time,
312
we have to start with the model of the signal itself. All signals can be
313
modelled as the sum of a series of cosines and sines. In the simplest
314
case:
315
316
For a continuous variable \(E(t)\), we can model field strength as
317
318
\$ E(t) = \sum\_\{i=1\}\^{}N \textbar{}a\_i\textbar{}
319
\cos(2\emph{pi}f\_c t+\phi)\$
320
321
Where \(A_{Tx}\) is the amplitude at the transmitter, \(f_c\) is the
322
center frequency and \(\phi\) is a phase shift. As we can see from the
323
above equation, that only three parameters are within our control:
324
amplitude, frequency, and phase. With these three parameters, there are
325
many modulation schemes. The simplest case is show below in Figure 1.
326
327
Figure 1. - Different Modulation Techniques.
328
329
\(A_{Tx} \cos(2*\pi*f_c t+\phi)\)
330
331
where \(a_i\) is the average amplitude of the signal strength at the
332
receiver, given by the root-mean square estimation.
333
334
Modern wi-fi systems (since 802.11n) have deployed MIMO antenna arrays
335
that allow for a particular type of modulation that exploits the phase
336
and amplitude characteristics of signal, called Quadrature Amplitude
337
Modulation (QAM). This is where we must recall Euler's Identity
338
339
\(e^{i*\pi}+1=0\)
340
341
If we decompose this according to a basic trigonometric identity and let
342
\(x = 2*\pi*f_c t+\phi\), we see that
343
344
\(e^{i*\pi} = - (\sin^2(\omega)+\cos^2(x))\)
345
346
Without loss of generality, the above identity holds true for any
347
scaling factor \(E\). If we rewrite this in terms of phase and quadratur
348
components we find that
349
350
\(E(t) = I(t)*\cos(2*pi*f_c t+\phi)+Q(t)-\sin(2*pi*f_c t+\phi)\)
351
352
where \(Q\) is the phase of the signal and \(I\) is its amplitude.
353
354
Figure 2. - Phase-Amplitude Model.
355
356
Furthermore, since phase is a continuous variable, our sample space (as
357
a function of \(\theta\) can become arbitrarily small. However, there is
358
a trade-off here. As we decrease our \(\theta\) sampling window, we
359
increase our effective noise floor, as each pizza-shaped slice of our
360
measurement window contains the same information in less geometric
361
space. The effect of this is to transmit for bits per symbol. Note this
362
only applies to receiving systems with a single antenna.
363
364
\begin{longtable}[c]{@{}llll@{}}
365
\toprule
366
Modulation & Bits per Symbol & Symbol Rate & Minimum SNR\tabularnewline
367
\midrule
368
\endhead
369
BPSK & 2 & 1/2 bit rate & 3.5dB\tabularnewline
370
QPSK & 3 & 1/3 bit rate & 22.45\tabularnewline
371
8PSK & 4 & 1/3 bit rate & 26.96\tabularnewline
372
16QAM4 & 5 & 1/4 bit rate & 30.67\tabularnewline
373
32QAM & 5 & 1/5 bit rate & 32.49\tabularnewline
374
64QAM & 6 & 1/6 bit rate & 35.02\tabularnewline
375
\bottomrule
376
\end{longtable}
377
378
http://www.ni.com/tutorial/4805/en/
379
http://www.scielo.org.za/scielo.php?script=sci\_arttext\&pid=S0038-23532011000100012
380
381
\subsubsection{Design Constraints}\label{design-constraints}
382
383
I want to be able to build this path loss model using a large set of
384
numerical data. In order to do that, we must limit ourselves to
385
measuring things that are available on common radio circuits. For
386
model-building purposes, I set up tcpdump, iw, iperf, and ping to gather
387
network state data from the transmitter and receiver ends. I have
388
developed an android application using the Automate tool that gathers
389
sensor data from all three on-board radios (bluetooth, wifi, and cdma)
390
as well as the the 9 degree of freedom orientation chip that quantifies
391
location (in 3 dimensions), orientation (along each of 3 axes), and
392
magnetic field (in each of 3 orthogonal directions). In addition to
393
that, we get other common wifi packet data. In addition, the wi-fi
394
packet frames provide more information: * a frame control segment that
395
indicates whether the frame is a control, management, or data type *
396
address segments that include the MAC addresses of transmitter,
397
receiver, and the final destination at either end * sequence control
398
data that helps to reorder frames that arrive at phase-delayed times *
399
the actual body of the frame (data) * a frame sequence check (a 32 bit
400
checksum for error correction)
401
402
https://witestlab.poly.edu/blog/802-11-wireless-lan-2/
403
404
At the receiver end, I can verify the state of this data relative to the
405
transmit data, verify timing assumptions (to an imprecise degree),
406
gather RSSI levels and the bit error rate for a given modulation. At the
407
receiver end, I log the data continuosly for the sensor data. Every time
408
the Android OS has the ability (due to processor congestion and timing),
409
it measures the raw voltage levels on the 9-DoF chip. The network state
410
data, because it is user-space software, takes time to make its
411
measurements. Since this problem is outside of the scope of this
412
project, training data will only be taken from timestamped data that has
413
no missing features. It is possible that a time-series average of the
414
sensor data can replace the instantaneous measurement in the model.
415
However, more investigation is needed.
416
417
In addition to wifi data, I can collect the same information from a
418
bluetooth radio. However, instead of operating in the 2.4 or 5 Ghz
419
ranges familiar to wifi, it operates in the sub Ghz range around 900Mhz.
420
Because of the difference in these wavelenghts, the two fields operate
421
somewhat differently at a human scale. Bluetooth is much less sensitive
422
to fading and other non-line of sight measurements. The difference in
423
estimated fading margins between wifi and bluetooth can be used to get a
424
characteristic of the environment.
425
426
\subsection{Previous Models}\label{previous-models}
427
428
\subsubsection{Friis Equation}\label{friis-equation}
429
430
In the simplest scenario, we can model the free space path loss. This
431
function of received power in terms of distance is known as Friis' Law:
432
433
\(P_{Rx}(d)=P_{Tx}G_{Tx}G_{Rx}(\frac{\lambda}{4*\pi*d})^2A_{Rx}\)
434
435
Where \(P\) is the power, \(G\) is the gain, and \(A\) is the area of
436
the receiving antenna, \(d\) is distance between the transmitters and
437
\(\lambda\) is the frequency. This equation only applies for systems
438
that are separated by at least one Rayleigh distance defined by
439
440
\(d_{R}=\frac{2{L_a}^2}{\lambda}\)
441
442
This is known as the far field. When dealing with link budgets, it is
443
best to use a logarithmic scale because signal levels will vary across
444
many orders of magnitude.
445
446
\(P_{Rx}(d)=P_{Tx}G_{Tx}G_{Rx}20\log(\frac{\lambda}{4*\pi*d})^2A_{Rx}\)
447
448
if and only if the powers and gains are consistently in dB or dBm.
449
450
\subsubsection{Kirchoff Theory}\label{kirchoff-theory}
451
452
In the same way that Rayleigh distance defines the breaking point of
453
Friis system, Rayleigh roughness can be thought of as the
454
455
\paragraph{Perturbation Theory}\label{perturbation-theory}
456
457
\subsubsection{Log-Distance Path Loss
458
Model}\label{log-distance-path-loss-model}
459
460
The next model, log-normal shadowing can be thought of as an extension
461
of the Friis model with the added inclusion of a random variable. If the
462
receiver is in the far field of the receiver (where \(d>d_R\)),
463
\(PL(d_0)\) is the path loss measured at a distance \(d_0\) from teh
464
transmitter, then the path loss when moving from distance \(d0\) to
465
\(d\) is given by the equation
466
467
\(PL{d_0\rightarrow d}(dB) PL(d_0)+10n\log_{10}\frac{d}{d_0} + \chi_1\)
468
469
c where \(n\) is the path loss exponent, given by the table below and
470
\(\chi\) is a zero mean random normal distribution.
471
472
https://www.gaussianwaves.com/2013/09/log-distance-path-loss-or-log-normal-shadowing-model/
473
474
\begin{longtable}[c]{@{}lll@{}}
475
\toprule
476
Environment & Path Loss Exponent min & Path Loss Exponent
477
Max\tabularnewline
478
\midrule
479
\endhead
480
Free Space & 2 & 2\tabularnewline
481
Urban area cellular radio & 2.7 & 3.5\tabularnewline
482
Shadowed urban cellular radio & 3 & 5\tabularnewline
483
Inside-LoS & 1.6 & 1.8\tabularnewline
484
Obstructed in building & 4 & 6\tabularnewline
485
Obstructed in Factory & 2 & 3\tabularnewline
486
\bottomrule
487
\end{longtable}
488
489
\textbf{\emph{Figure 1:}} Empirical Log-distance coefficients
490
491
\subsubsection{Noise}\label{noise}
492
493
In most circumstances it is too cumbersome to describe all the sources
494
of noise. If it wasn't, then we'd solve Maxwell's Equations within the
495
system and be done with it. However there are many sources of
496
interference. Multipath propagation is a big limitation to predicting
497
the shape of a wireless network in an urban space as different rays from
498
the transmitter bounce around the room and reach the receiver at
499
different times. Because receivers cannot distinguish the 'true' signal
500
from the multi-path signal, the receiver just adds the components of
501
those multipaths up, creating interference. This interference can be
502
constructive or destructive. Small-scale fading occurs when a user is
503
moving-\/-when the user moves further away, they increase the phase and
504
possibly the measured voltage level. Additionally, the transmitter and
505
receiver each produce noise. The total power due to noise can be
506
described as
507
508
\(P = (\sum_{k=0}^{n}(x_I+x_Q))^2\)
509
510
Where \(x_I\) and \(x_Q\) are linearly independent vectors of amplitude,
511
\(I\), and phase, \(Q\). The signal to noise ratio can be expressed as
512
513
\(SNR = \frac{P_{signal}}{P_{noise}}\)
514
515
where P is the average power measured at the equivalent points in a
516
system and within the same system bandwidth. If we include interference,
517
the SNR becomes SINR or the signal to interference and noise ratio.
518
519
\(SINR = \frac{P_{signal}}{P_{noise}+P_{interference}}\)
520
521
Interference can also be created by objects in the environment.
522
Buildings and other obstacles to propagation can block regular
523
transmission, causing any signal to make it behind the building to be
524
greatly attenuated. This is called shadowing. Note that this not only
525
happens to the line-of-sight components of the wave front, but any multi
526
path ray! For this reason, buildings and other obstacles give rise to
527
large-scale fading by creating a diffraction pattern of the signal wave
528
in the shadow of the building.
529
530
These components can undergo many types of transformations. Reflection
531
is when a field reaches an object with very large dimensions compared to
532
the wavelength of the field. A wi-fi signal is reflected off of
533
buildings and the ground, creating patterns of de/coherence. Diffraction
534
occurs when a transmitter and receiver are obstructed by a surface,
535
'bending' the wave around the obstacle. When a field travels across a
536
surface with dimensions that are small compared to its wavelenght and
537
where the number of obstacles per volume is high. Refraction is a result
538
of the field traversing multiple mediums, much like how a pencil appears
539
to 'bend' when placed in a glass of water. For much higher frequencies
540
(starting at 15Ghz), atmospheric absorption is a problem, but for indoor
541
distances and low frequencies, the effects are negligible. {[}Source
542
Tum{]}
543
544
\subsubsection{Log-Normal Shadowing Propagation Loss
545
Model}\label{log-normal-shadowing-propagation-loss-model}
546
547
The next model builds on the Log-Normal shadowing model by including a
548
random variable, \(chi\). This law can be expressed as:
549
550
\(PL_{d_0\rightarrow d}(dB)=PL(d_0)+10n\log_{10}\frac{d}{d_0}+\chi_2\)
551
552
Where \(\chi_2\) is a zero-mean Gaussian distributed random variable.
553
This variable is only used when there is a shadowing effect.
554
Equivalently, \(\chi_2=0\) when no shadowing effect is present.
555
556
\subsubsection{Two Ray Ground Propagation Loss
557
Model}\label{two-ray-ground-propagation-loss-model}
558
559
Thus far, we have not needed to think of our signal and other multipath
560
components as being complex vectors. When we start trying to predict the
561
way these multiple paths interact analytically, phase shifting due to
562
refraction, fading, and other multipath effects can be modelled by using
563
a two path tracing technique. The figure below illustrates this model.
564
565
Figure 1. - Two Ray Path Loss Model.
566
567
\subsubsection{ITU Propagation Loss
568
Model}\label{itu-propagation-loss-model}
569
570
The next model is a semi-empirical model, based on the same Friis
571
equatoin, with added parameters for noise due to fading between floors
572
in a building.\\
573
574
\(PL_{d_0\rightarrow d}(dB)=PL(d_0)+20n\log_{f}+N(\log_{10}(d)+P_f(n)-28\)
575
576
Where \(P_f\)(n) is a power loss function due to the number of floors
577
through which the field propagates. In addition, the \(\chi\) value of
578
previous models has been set to -28 in the ITU model, taken from
579
standardized urban measurements. Source: ITU.pdf
580
581
\subsubsection{Motley-Keenan Model}\label{motley-keenan-model}
582
583
The Motley-Keenan Model follows the same logic.\\
584
\(PL_{d_0\rightarrow d}(dB)=PL(d_0)+20\log_{10}\frac{d}{d_0}+\sum a_K\)\\
585
\(PL_{LoS}(d)[dB]=20log_{10}\frac{(4πd_0)}{λ}+10_{n_{LoS}}log_{10}(d)+\chi_{\sigma}\)\\
586
\(PL_{NLoS}(d)[dB]=20log_{10}\frac{(4πd_0)}{λ}+10_{n_{NLoS}}log_{10}(d)+\chi_{\sigma}\)
587
\(PL_{LoS}(d)[dB]=P_{LoS}*PL_{LoS}(d)[dB]+(1-P_{LoS})*PL_{NLoS}(d)[dB]\)
588
589
Source: m-k 3
590
591
\subsubsection{Tata Modified ITU Model}\label{tata-modified-itu-model}
592
593
\(PL_{TIPLM}(dB)=20 × log_{10}(f) + N_T × log_{10}(d)+10+\sum_{w=0}^{w=k}+FAF-20\)
594
595
NT for different number of obstacles
596
597
\begin{longtable}[c]{@{}llllll@{}}
598
\toprule
599
Channel 1 & & Channel 7 & & Channel 11 &\tabularnewline
600
\midrule
601
\endhead
602
No. Obstacles & \(N_T\) & No. Obstacles & \(N_T\) & No. Obstacles &
603
\(N_T\)\tabularnewline
604
1 & 31.1 & 1 & 32.9 & 1 & 29.3\tabularnewline
605
2 & 30.1 & 2 & 28.5 & 2 & 28.4\tabularnewline
606
3 & 31.8 & 3 & 26.7 & 3 & 27\tabularnewline
607
4 & 31.2 & 4 & 29.1 & 4 & 28\tabularnewline
608
5 & 31.3 & 5 & 27.4 & 5 & 28.4\tabularnewline
609
\bottomrule
610
\end{longtable}
611
612
Floor Wise Attenuation Factor (FAF)
613
614
\begin{longtable}[c]{@{}ll@{}}
615
\toprule
616
Scenario & FAF (dB)\tabularnewline
617
\midrule
618
\endhead
619
-2 floors & 36\tabularnewline
620
-1 floors & 21\tabularnewline
621
0 floors & 0\tabularnewline
622
+1 floors & 21\tabularnewline
623
+2 floors & 33\tabularnewline
624
+3 floors & 40\tabularnewline
625
\bottomrule
626
\end{longtable}
627
628
Longley-Rice Model:
629
630
Frequency\\
631
Distance\\
632
Antenna Heights\\
633
Polarization\\
634
Terrain irregularity (\(\Delta h\))\\
635
Electrical Ground constants\\
636
Refractivity\\
637
Climate\\
638
Siting\\
639
Reliability and confidence level
640
641
w' (t,,s) = W0 + yS(s) + δL(s) yL() + δT(s) yT(t),\\
642
https://www.ntia.doc.gov/files/ntia/publications/ntia\_82-100\_20121129145031\_555510.pdf
643
644
\begin{Verbatim}[commandchars=\\\{\}]
645
{\color{incolor}In [{\color{incolor}5}]:} \PY{c+c1}{\PYZsh{}\PYZsh{} Purely Statistical Models}
646
\end{Verbatim}
647
648
649
\subsubsection{Rayleigh Fading}\label{rayleigh-fading}
650
651
\(x = cdf(r_{min})\approx \frac{r^2_{min}}{2\sigma^2}\)
652
653
\subsubsection{Rician Fading}\label{rician-fading}
654
655
\subsubsection{Doppler Adjustments}\label{doppler-adjustments}
656
657
\$BER\_\{Doppler\} = \frac{1}{2} \pi\textsuperscript{2(v\_\{max\}T\_B)}2
658
\$
659
660
\(BER = K (\frac{S_{\tau}}{T_B})^2\)
661
662
\subsubsection{Machine Learning}\label{machine-learning}
663
664
\subsection{Problem}\label{problem}
665
666
Standard wireless models are great at modelling unbostructed
667
line-of-sight connections. However, they fail to accurately model the
668
network states at peak noise, in complicated urban environments both
669
indoors and outdoors. In addition, these models live entirely in the
670
proprietary world of the IEEE website. Implementing these models in
671
Python would go a long way to modelling the bigger problem. This is the
672
first step. Since some quantities required for these models are unknown,
673
a gridsearch algorithm will be used to optimize these algorithms.
674
675
Since these models require different sets of parameters, what features
676
our dataset needs is an open question. The first method will be using a
677
k-random-forest algorithm to see what features are relevant to the
678
signal strength between two nodes.
679
680
The next method will take the most useful features and use them to build
681
a linear (or maybe quadratic) regressor that predicts signal to noise
682
ratio between two nodes.
683
684
Then, each of these models (the set of 802.11 standard models and my
685
from-scratch regressor) will be compared using a Xi-Square test.
686
Differences between my 'simplified' model and the more complex 802.11
687
models will be compared and analyzed with respect to the cost of finding
688
the additional features.
689
690
\begin{longtable}[c]{@{}lllllll@{}}
691
\toprule
692
\begin{minipage}[b]{0.05\columnwidth}\raggedright\strut
693
Model
694
\strut\end{minipage} &
695
\begin{minipage}[b]{0.16\columnwidth}\raggedright\strut
696
Required Features
697
\strut\end{minipage} &
698
\begin{minipage}[b]{0.16\columnwidth}\raggedright\strut
699
\strut\end{minipage} &
700
\begin{minipage}[b]{0.14\columnwidth}\raggedright\strut
701
\strut\end{minipage} &
702
\begin{minipage}[b]{0.13\columnwidth}\raggedright\strut
703
\strut\end{minipage} &
704
\begin{minipage}[b]{0.08\columnwidth}\raggedright\strut
705
\strut\end{minipage} &
706
\begin{minipage}[b]{0.09\columnwidth}\raggedright\strut
707
\strut\end{minipage}\tabularnewline
708
\midrule
709
\endhead
710
\begin{minipage}[t]{0.05\columnwidth}\raggedright\strut
711
Friis
712
\strut\end{minipage} &
713
\begin{minipage}[t]{0.16\columnwidth}\raggedright\strut
714
Receive Power
715
\strut\end{minipage} &
716
\begin{minipage}[t]{0.16\columnwidth}\raggedright\strut
717
Transmit Power
718
\strut\end{minipage} &
719
\begin{minipage}[t]{0.14\columnwidth}\raggedright\strut
720
Transmitter Gain
721
\strut\end{minipage} &
722
\begin{minipage}[t]{0.13\columnwidth}\raggedright\strut
723
Receiver Gain
724
\strut\end{minipage} &
725
\begin{minipage}[t]{0.08\columnwidth}\raggedright\strut
726
distance
727
\strut\end{minipage} &
728
\begin{minipage}[t]{0.09\columnwidth}\raggedright\strut
729
frequency
730
\strut\end{minipage}\tabularnewline
731
\bottomrule
732
\end{longtable}
733
734
\subsection{Hypothesis}\label{hypothesis}
735
736
Machine Learning Tools can signinficantly reduce the cost of
737
measurement.
738
739
740
% Add a bibliography block to the postdoc
741
742
743
744
\end{document}
745
746