Message from discussion Discover filter coefficients of system.
From: "julius" <juli...@gmail.com>
Subject: Re: Discover filter coefficients of system.
Date: 20 Feb 2007 06:50:39 -0800
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1171983047 7807 127.0.0.1 (20 Feb 2007 14:50:47 GMT)
NNTP-Posting-Date: Tue, 20 Feb 2007 14:50:47 +0000 (UTC)
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:220.127.116.11) Gecko/20061206 Firefox/18.104.22.168,gzip(gfe),gzip(gfe)
Injection-Info: q2g2000cwa.googlegroups.com; posting-host=22.214.171.124;
On Feb 19, 9:19 pm, horndud...@gmail.com wrote:
> I'm wanting to model a real world system using an FIR filter. I have
> samples of the input and the expected output. How does one find the
> filter coefficients from these? I've been using particle swarm
> optimization, but it's very approximate. It's not getting as close as
> I want it to so I'm looking to try something new. I'm sure there are
> more exact techniques out there. I was told by a friend there is an
> iterative technique using an auto-correlation matrix that might do
> what I want, but we were talking fast and I didn't follow all that he
> was saying. I did some quick searching and didn't find much. Can
> anyone point me in the right direction? Thanks for the help.
There are many, many methods. The choice depends on
the noise in your measurements, some knowledge of the
system itself, and the number of samples that you get.
The correlation-based method that was mentioned probably
uses the following property. Suppose that the input
signal is x[n], the system h[n], and the output y[n].
Let rxx[n] be the autocorrelation of x[n], and
rxy[n] be the cross-correlation of x[n] and y[n].
Then it can be shown that rxy[n] = rxx[n] * h[n].
So if you can estimate rxx and ryx, then you can
do a de-convolution to get h[n]. Further, it can
be shown that ryy[n] = rxx[n] * (h[n] * h[-n]).
Note that in this last one, the phase information
is gone and you can only solve up to h[n]*h[-n].
Since you are interested in FIR estimates, most
of the time people do what is called minimum-phase
Anyways, these are just a bunch of ideas,
extrapolated from your question.
Hope that helps,