Eric Jacobsen wrote:
> On 12/9/2009 7:54 AM, km wrote:
>> Hi All,
>> Does anyone have a suggestion for a fast down sampling filter?
>
> For N:1 reduction, add N consecutive samples together and output that.
> Move to the next window of N samples.
>
> The response will not be great, but it is, in fact, a fast down sampling
> filter.
>
> Case closed.
>
Eric's suggestion is a very good one in terms of simplicity.
Conceptually, you can think of it as a moving average, followed by
Rune's suggestion of throwing out all but every Nth sample, aka,
downsampling.
However, if you want something fancier, you can use a decimation
algorithm. Decimation combines The ScopeFIR distribution file, which
contains an optimized and free/open decimation function in C, is
available at
http://www.iowegian.com/download .
Also, decimation is a special case of the more general method of
resampling, which combines decimation with interpolation. Free
resampling software is online at
https://ccrma.stanford.edu/~jos/resa..._Software.html .
See dspGuru's Multirate FAQ at
http://dspguru.com/dsp/faqs/multirate for
some introductory material on multirate topics like downsampling,
decimation, and resampling. <RTFFAQ>
Grant
--
__________________________________________________ ___________________
Grant R. Griffin
Publisher of dspGuru
http://www.dspguru.com
Iowegian International Corporation
http://www.iowegian.com
See
http://www.iowegian.com/img/contact.gif for e-mail address