discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] fir filter taps


From: cswiger
Subject: [Discuss-gnuradio] fir filter taps
Date: Fri, 21 Jan 2005 15:47:04 -0500 (EST)

Gang - Just to get a rigorous handle on things, this code:

-----------------------

in_vect = [1, 0, 0, 0, 0]
src0 = gr.vector_source_f (in_vect, 1)

fir1 = gr.fir_filter_fff (1, [2, 4, 6])

dst0 = gr.file_sink (gr.sizeof_float, "out_vect")

fg.connect (src0, fir1)
fg.connect (fir1, dst0)

------------------------

produces the output sequence:
2, 0, 0, 6, 4, 2, 0, 0, 6, 4, 2

which should be an implementation of:

y[n] = 6*x[n] + 4*x[n-1] + 2*x[n-2]  (??)


So I see what you mean by reversing taps. However I thought
the expression x[n+M] would indicate current output is a function of
FUTURE (yet to arrive) inputs.

--Chuck





reply via email to

[Prev in Thread] Current Thread [Next in Thread]