From de4bc0e1788a6688878ff5057a10d58a642d5f01 Mon Sep 17 00:00:00 2001 From: Christiaan Baaij Date: Mon, 14 Dec 2009 10:38:48 +0100 Subject: [PATCH] Higlight code --- christiaan/fir.lhs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/christiaan/fir.lhs b/christiaan/fir.lhs index ff6bdb9..634ad9d 100644 --- 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} - 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} - |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]{ -- 2.30.2