\usepackage{xspace}
\newcommand{\eg}       {e.\,g.\@\xspace}
\newcommand{\ie}       {i.\,e.\@\xspace}
\newcommand{\qq}    [1]{``#1''}
\newcommand{\figref}[1]{fig.~\ref{#1}}
\newcommand{\etal}  [1]{#1~et~al.\@\xspace}

\DeclareSIUnit{\belmilliwatt}{Bm}
\DeclareSIUnit{\dBm}{\deci\belmilliwatt}

\newcommand{\ieeWifiFTM}{\mbox{IEEE 802.11-2016}\xspace}
\newcommand{\ieeWifiN}  {\mbox{IEEE 802.11n}\xspace}
\newcommand{\ieeWifiAC} {\mbox{IEEE 802.11ac}\xspace}

% keyword macros
\newcommand{\docIBeacon}{iBeacon}

% wifi naming
\newcommand{\wifiRSSI}{RSSI}
\newcommand{\wifiTxPower}{TX-Power}
\newcommand{\wifiPathLossExp}{PathLoss}

\newcommand{\wifiPropLogScale}{Log-Scale}
\newcommand{\wifiPropLogScaleWalls}{Log-Scale-Walls}
\newcommand{\docLogDistance}{log-distance}
\newcommand{\docLogDistanceWalls}{wall-attenuation-factor}


% misc
\newcommand{\docTxPower}{TX-Power}
\newcommand{\docPathLossExp}{PathLoss}
\newcommand{\docPathLoss}{Pathloss}

\newcommand{\docsAP}{AP}
\newcommand{\docAPshort}{AP}
\newcommand{\docAP}{access point}
\newcommand{\docAPs}{access points}

\newcommand{\docWIFI}{Wi\hbox{-}Fi}
\newcommand{\docBeacon}{\Gls{Beacon}}
\newcommand{\docBeacons}{\Glspl{Beacon}}

\newcommand{\docsRSSI}{RSSI}

\newcommand{\docDSimplex}{downhill-simplex}
\newcommand{\docGaussNetwon}{Gauss–Newton algorithm\xspace}
\newcommand{\docLevenbergMarq}{Levenberg–Marquardt algorithm\xspace}

\DeclareMathOperator{\atan}{atan2}
