X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=christiaan%2Ffir.lhs;fp=christiaan%2Ffir.lhs;h=c76e75367e8d8c94e24b7137691c302a4254a93f;hb=a6db20a6d9cfe457b5deb643932813b921a04d47;hp=0000000000000000000000000000000000000000;hpb=0c004e8c0dff6f9a4140519c8b31410f9b0c8242;p=matthijs%2Fmaster-project%2Ffinal-presentation.git diff --git a/christiaan/fir.lhs b/christiaan/fir.lhs new file mode 100644 index 0000000..c76e753 --- /dev/null +++ b/christiaan/fir.lhs @@ -0,0 +1,69 @@ +%include talk.fmt +\section{FIR Filter} + +\begin{frame} + \frametitle{Example: FIR Filter} + \begin{itemize} + \item FIR Filters, and digital filters in general are essential components in radio's, receivers, and cellphones. + \item Equation for a FIR Filter: \\ + \[ + y_t = \sum\nolimits_{i = 0}^{n - 1} {x_{t - i} \cdot h_i } + \] + \end{itemize} +\end{frame} + +\begin{frame} + \frametitle{FIR Filter} + \[ + y_t = \sum\nolimits_{i = 0}^{n - 1} {x_{t - i} \cdot h_i } + \] +\end{frame} + +\input{christiaan/dotproduct} + +\begin{frame} + \frametitle{FIR Filter} + \[ + y_t = \sum\nolimits_{i = 0}^{n - 1} {x_{t - i} \cdot h_i } + \] \\ + \begin{verbatim} + fir (State pxs) x = (pxs**hs, State (pxs<++x)) + where hs = $(vectorTH [2::Int16,3,-2,4]) + \end{verbatim} + \centerline{\begin{tabular}{rl} + |pxs| & Previous x's (state)\\ + |x| & New input value\\ + |pxs <++ x| & Remember new |x|, remove oldest\\ + |pxs ** hs| & Output + \end{tabular}} + +\end{frame} + +\begin{frame} + \frametitle{FIR Filter} + \centerline{\Huge{Demo}} +\end{frame} + +\begin{frame} + \frametitle{Synthesized Output} + \vspace{-0.8em} + \begin{figure} + \centerline{\includegraphics[width=\paperwidth,trim=9mm 4cm 14mm 4cm, clip=true]{fir0.png}} + \end{figure} +\end{frame} + +\begin{frame} + \frametitle{Synthesized Output} + \vspace{-0.8em} + \begin{figure} + \centerline{\includegraphics[width=\paperwidth,trim=9mm 4cm 16.5cm 4cm, clip=true]{fir1.png}} + \end{figure} +\end{frame} + +\begin{frame} + \frametitle{Synthesized Output} + \vspace{-0.8em} + \begin{figure} + \centerline{\includegraphics[width=\paperwidth,trim=3cm 4cm 4cm 4cm, clip=true]{fir2.png}} + \end{figure} +\end{frame} \ No newline at end of file