projects
/
matthijs
/
master-project
/
final-presentation.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
763ae6d
)
Higlight code
author
Christiaan Baaij
<christiaan.baaij@gmail.com>
Mon, 14 Dec 2009 09:38:48 +0000
(10:38 +0100)
committer
Christiaan Baaij
<christiaan.baaij@gmail.com>
Mon, 14 Dec 2009 09:38:48 +0000
(10:38 +0100)
christiaan/fir.lhs
patch
|
blob
|
history
diff --git
a/christiaan/fir.lhs
b/christiaan/fir.lhs
index ff6bdb9959ee479b0a97f263caf270e366bcea51..634ad9d3fec61dc674b3a39209cfde9096dc03ae 100644
(file)
--- a/
christiaan/fir.lhs
+++ b/
christiaan/fir.lhs
@@
-38,14
+38,14
@@
y_t = \sum\nolimits_{i = 0}^{n - 1} {x_{t - i} \cdot h_i }
\] \\
\begin{code}
y_t = \sum\nolimits_{i = 0}^{n - 1} {x_{t - i} \cdot h_i }
\] \\
\begin{code}
- fir (State
pxs) x = (pxs**hs, State (pxs<++x
))
+ fir (State
{-"{\color<2>[rgb]{1,0,0}"-}pxs{-"}"-}) {-"{\color<3>[rgb]{1,0,0}"-}x{-"}"-} = ({-"{\color<5>[rgb]{1,0,0}"-}pxs**hs{-"}"-}, State ({-"{\color<4>[rgb]{1,0,0}"-}pxs<++x{-"}"-}
))
where hs = $(vectorTH [2::Int16,3,-2,4])
\end{code}
\centerline{\begin{tabular}{rl}
where hs = $(vectorTH [2::Int16,3,-2,4])
\end{code}
\centerline{\begin{tabular}{rl}
-
|pxs|
& Previous x's (state)\\
-
|x|
& New input value\\
-
|pxs <++ x|
& Remember new |x|, remove oldest\\
-
|pxs ** hs|
& Output
+
{\color<2>[rgb]{1,0,0}|pxs|}
& Previous x's (state)\\
+
{\color<3>[rgb]{1,0,0}|x|}
& New input value\\
+
{\color<4>[rgb]{1,0,0}|pxs <++ x|}
& Remember new |x|, remove oldest\\
+
{\color<5>[rgb]{1,0,0}|pxs ** hs|}
& Output
\end{tabular}}
\end{frame}
\note[itemize]{
\end{tabular}}
\end{frame}
\note[itemize]{