Sign in

username:

password:



Not a member?

Search compdsp



Search tips

comp.dsp by Keywords

Adaptive Filter | ADPCM | ADSP | ADSP-2181 | Aliasing | AMR | Anti-Aliasing | ARMA | Autocorrelation | AutoCovariance | Beamforming | Bessel | Blackfin | Butterworth | C6713 | CCS | Chebyshev | CIC Filter | Circular Convolution | Code Composer Studio | Comb Filter | Compression | Convolution | Cross Correlation | DCT | Decimation | Deconvolution | Demodulation | DM642 | DSP Boards | DSP/BIOS | DTMF | Echo Cancellation | Equalization | Equalizer | ETSI | EZLITE (Ez-kit Lite) | FFT | FFTW | FIR Filter | Fixed Point | FSK | G.711 | G.723 | G.729 | Gaussian Noise | Goertzel | GPIO | Hilbert Transform | IFFT | IIR Filter | Interpolation | Invariance | JTAG | Kalman | Laplace Transform | Levinson | LPC | McBSP | MIPS | Modulation | MPEG | Multirate | Notch Filter | Nyquist | OFDM | Oversampling | Pink Noise | Pitch | PLL | Polyphase | QAM | QDMA | Quantization | Quantizer | Radar | Random Noise | Reed Solomon | Remez | Resampling | RTDX | Sampling | Sharc | TI C6711 | Undersampling | Viterbi | Wavelets | White Noise | Wiener Filter | Windowing | XDS510PP | Z Transform

Sponsor

Evaluate multicore with Texas Instruments:
Low-cost evaluation module & free software development kit available NOW.

Discussion Groups

Free Online Books

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | Comp.DSP | About Butterworth IIR filter ^_^

There are 12 messages in this thread.

You are currently looking at messages 0 to 10.


About Butterworth IIR filter ^_^ - sxy6z - 2009-07-04 11:40:00

Hello Masters:

      When I develop a Butterwoth IIR filter. there is a strange
phnomenon. After filter a standard sine signal with it, noise signal has
been removed. but the amplitudes/peaks of each  wave are not the same. for
example, maybe one is 0.9994 and another is 0.977 etc.
      In fact, Some FIR filters also have this phenomenon. It confused me.

      Any remarks are appreciated and thank you very much~~ 


______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: About Butterworth IIR filter ^_^ - robert bristow-johnson - 2009-07-04 11:58:00



On Jul 4, 11:40=A0am, "sxy6z" <icipiq...@yahoo.com.cn> wrote:
> Hello Masters:
>
> =A0 =A0 =A0 When I develop a Butterwoth IIR filter. there is a strange
> phnomenon. After filter a standard sine signal with it, noise signal has
> been removed. but the amplitudes/peaks of each =A0wave are not the same. =
for
> example, maybe one is 0.9994 and another is 0.977 etc.
> =A0 =A0 =A0 In fact, Some FIR filters also have this phenomenon. It confu=
sed me.

could this be... FREQUENCY RESPONSE?

r b-j

______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: About Butterworth IIR filter ^_^ - Steve Pope - 2009-07-04 14:57:00

sxy6z <i...@yahoo.com.cn> wrote:

> Hello Masters:

> When I develop a Butterwoth IIR filter. there is a strange
> phnomenon. After filter a standard sine signal with it, noise
> signal has been removed. but the amplitudes/peaks of each  wave
> are not the same. for example, maybe one is 0.9994 and another
> is 0.977 etc.

Not normal.  You have a bug somewhere.

Steve
______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: About Butterworth IIR filter ^_^ - Rune Allnor - 2009-07-04 15:31:00

On 4 Jul, 20:57, spop...@speedymail.org (Steve Pope) wrote:
> sxy6z <icipiq...@yahoo.com.cn> wrote:
> > Hello Masters:
> > When I develop a Butterwoth IIR filter. there is a strange
> > phnomenon. After filter a standard sine signal with it, noise
> > signal has been removed. but the amplitudes/peaks of each =A0wave
> > are not the same. for example, maybe one is 0.9994 and another
> > is 0.977 etc.
>
> Not normal. =A0You have a bug somewhere.

Seems slike an overflow in the pole vault.
Maybe in the Bubka coefficient? Shouldn't
be higher than about 6.14-6.15.

Rune
______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: About Butterworth IIR filter ^_^ - HardySpicer - 2009-07-04 16:45:00

On Jul 4, 8:40=A0am, "sxy6z" <icipiq...@yahoo.com.cn> wrote:
> Hello Masters:
>
> =A0 =A0 =A0 When I develop a Butterwoth IIR filter. there is a strange
> phnomenon. After filter a standard sine signal with it, noise signal has
> been removed. but the amplitudes/peaks of each =A0wave are not the same. =
for
> example, maybe one is 0.9994 and another is 0.977 etc.
> =A0 =A0 =A0 In fact, Some FIR filters also have this phenomenon. It confu=
sed me.
>
> =A0 =A0 =A0 Any remarks are appreciated and thank you very much~~

Look at the frequency response and calculate what the magnitude should
be.
It will drop depending on the passband attenuation. How many dB
attenuation in the passband is there?
3dB?

Hardy
______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: About Butterworth IIR filter ^_^ - Tim Wescott - 2009-07-04 16:50:00

On Sat, 04 Jul 2009 10:40:44 -0500, sxy6z wrote:

> Hello Masters:
> 
>       When I develop a Butterwoth IIR filter. there is a strange
> phnomenon. After filter a standard sine signal with it, noise signal has
> been removed. but the amplitudes/peaks of each  wave are not the same.
> for example, maybe one is 0.9994 and another is 0.977 etc.
>       In fact, Some FIR filters also have this phenomenon. It confused
>       me.
> 
>       Any remarks are appreciated and thank you very much~~

Do you mean that different frequencies of sine waves have different 
amplitudes?  If so, you're just seeing the fact that a Butterworth filter 
has a DC gain of 1 and AC gains that are all strictly less than 1.

If you mean that you put _one_ sine wave through it, and that one sine 
wave has peaks at different values, then you are either seeing the 
transient response of the filter superimposed on it's continuous 
response, or you are seeing the results of a bug in your code.

-- 
http://www.wescottdesign.com
______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: About Butterworth IIR filter ^_^ - sxy6z - 2009-07-04 20:49:00

>On Sat, 04 Jul 2009 10:40:44 -0500, sxy6z wrote:
>
>> Hello Masters:
>> 
>>       When I develop a Butterwoth IIR filter. there is a strange
>> phnomenon. After filter a standard sine signal with it, noise signal
has
>> been removed. but the amplitudes/peaks of each  wave are not the same.
>> for example, maybe one is 0.9994 and another is 0.977 etc.
>>       In fact, Some FIR filters also have this phenomenon. It confused
>>       me.
>> 
>>       Any remarks are appreciated and thank you very much~~
>
>Do you mean that different frequencies of sine waves have different 
>amplitudes?  If so, you're just seeing the fact that a Butterworth filter

>has a DC gain of 1 and AC gains that are all strictly less than 1.
>
>If you mean that you put _one_ sine wave through it, and that one sine 
>wave has peaks at different values, then you are either seeing the 
>transient response of the filter superimposed on it's continuous 
>response, or you are seeing the results of a bug in your code.
>
>-- 
>http://www.wescottdesign.com
>

Signal is single frequency 0.5Hz. the peak of each wave is not the same.
the added noise frequecy is random noise. After filter, different peaks
have different value. Feel some difficult to discribe clearly. hehe ~~

______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: About Butterworth IIR filter ^_^ - Steve Pope - 2009-07-04 21:22:00

sxy6z <i...@yahoo.com.cn> wrote:

>Signal is single frequency 0.5Hz. the peak of each wave is not the same.
>the added noise frequecy is random noise. After filter, different peaks
>have different value. Feel some difficult to discribe clearly. hehe ~~

This could be additive, low-frequency noise that is not 
being filtered out.

Steve
______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: About Butterworth IIR filter ^_^ - Tim Wescott - 2009-07-04 22:09:00

On Sat, 04 Jul 2009 19:49:04 -0500, sxy6z wrote:

>>On Sat, 04 Jul 2009 10:40:44 -0500, sxy6z wrote:
>>
>>> Hello Masters:
>>> 
>>>       When I develop a Butterwoth IIR filter. there is a strange
>>> phnomenon. After filter a standard sine signal with it, noise signal
> has
>>> been removed. but the amplitudes/peaks of each  wave are not the same.
>>> for example, maybe one is 0.9994 and another is 0.977 etc.
>>>       In fact, Some FIR filters also have this phenomenon. It confused
>>>       me.
>>> 
>>>       Any remarks are appreciated and thank you very much~~
>>
>>Do you mean that different frequencies of sine waves have different
>>amplitudes?  If so, you're just seeing the fact that a Butterworth
>>filter
> 
>>has a DC gain of 1 and AC gains that are all strictly less than 1.
>>
>>If you mean that you put _one_ sine wave through it, and that one sine
>>wave has peaks at different values, then you are either seeing the
>>transient response of the filter superimposed on it's continuous
>>response, or you are seeing the results of a bug in your code.
>>
>>--
>>http://www.wescottdesign.com
>>
>>
> Signal is single frequency 0.5Hz. the peak of each wave is not the same.
> the added noise frequecy is random noise. After filter, different peaks
> have different value. Feel some difficult to discribe clearly. hehe ~~

Quantization noise?

-- 
http://www.wescottdesign.com
______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: About Butterworth IIR filter ^_^ - Dirk Bell - 2009-07-04 23:34:00

On Jul 4, 8:49=A0pm, "sxy6z" <icipiq...@yahoo.com.cn> wrote:
> >On Sat, 04 Jul 2009 10:40:44 -0500, sxy6z wrote:
>
> >> Hello Masters:
>
> >> =A0 =A0 =A0 When I develop a Butterwoth IIR filter. there is a strange
> >> phnomenon. After filter a standard sine signal with it, noise signal
> has
> >> been removed. but the amplitudes/peaks of each =A0wave are not the sam=
e.
> >> for example, maybe one is 0.9994 and another is 0.977 etc.
> >> =A0 =A0 =A0 In fact, Some FIR filters also have this phenomenon. It co=
nfused
> >> =A0 =A0 =A0 me.
>
> >> =A0 =A0 =A0 Any remarks are appreciated and thank you very much~~
>
> >Do you mean that different frequencies of sine waves have different
> >amplitudes? =A0If so, you're just seeing the fact that a Butterworth fil=
ter
> >has a DC gain of 1 and AC gains that are all strictly less than 1.
>
> >If you mean that you put _one_ sine wave through it, and that one sine
> >wave has peaks at different values, then you are either seeing the
> >transient response of the filter superimposed on it's continuous
> >response, or you are seeing the results of a bug in your code.
>
> >--
> >http://www.wescottdesign.com
>
> Signal is single frequency 0.5Hz. the peak of each wave is not the same.
> the added noise frequecy is random noise. After filter, different peaks
> have different value. Feel some difficult to discribe clearly. hehe ~~- H=
ide quoted text -
>
> - Show quoted text -

1) You did add random wideband noise that may be mostly filtered out
but the remaining noise (i.e. noise not in stopband) still remains and
will be added to all samples including the peaks, so they wouldn't be
the same value. Steve Pope I believe was referring to this.

2) Even if you did not add any noise, and if the sine wave is
essentially pure, and there is no quantization noise, and you let the
filter transient die out, you can get peaks of different amplitudes
depending on the relationship of the input frequency, sampling
frequency, and when you take the samples.  Is the 0.5Hz wave
mathematically generated and fed into your filter code? What is the
sample rate? Is there an integer number of samples per cycle of the
0.5 Hz waveform?

If the answer to the last question in 2) is not TRUE, the
"peak" (largest sample in that half of the sinusoidal cycle) will not
be regularly sampled at the actual peak time of the waveform and the
"peak" amplitude may wander a bit.

Dirk Bell

______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

| 1 | 2 | next