Orkut Gmail Calendar Documents Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
fixed point FFT problem with non-periodic input
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
kubush  
View profile  
 More options Feb 9, 9:46 pm
Newsgroups: comp.dsp
From: "kubush" <ab.saybas...@gmail.com>
Date: Tue, 09 Feb 2010 10:16:11 -0600
Local: Tues, Feb 9 2010 9:46 pm
Subject: fixed point FFT problem with non-periodic input
Hi,

I have a fixed point FFT implementation that I wrote from scratch in C. It
is based on radix-2 Cooley-Tukey. I have the same implementation in
floating point too.

- When I have periodic input data both floating and fixed point
implementations work properly.
- When I have non-periodic input data, let's say x[i] = i; floating point
implementation is fine but fixed point is completely wrong.

I don't understand what the input type has to do with fixed point data
structures/operations.

I would appreciate any help.

Thanks,


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
robert bristow-johnson  
View profile  
 More options Feb 10, 2:01 am
Newsgroups: comp.dsp
From: robert bristow-johnson <r...@audioimagination.com>
Date: Tue, 9 Feb 2010 12:31:58 -0800 (PST)
Local: Wed, Feb 10 2010 2:01 am
Subject: Re: fixed point FFT problem with non-periodic input
On Feb 9, 11:16 am, "kubush" <ab.saybas...@gmail.com> wrote:

> Hi,

> I have a fixed point FFT implementation that I wrote from scratch in C. It
> is based on radix-2 Cooley-Tukey. I have the same implementation in
> floating point too.

> - When I have periodic input data both floating and fixed point
> implementations work properly.
> - When I have non-periodic input data, let's say x[i] = i; floating point
> implementation is fine but fixed point is completely wrong.

wel, even if you're floating point, the non-windowed non-periodic data
will likely have a nasty discontinuity as you wrap from x[N-1] to
x[0].  but i presume you are expecting that.

> I don't understand what the input type has to do with fixed point data
> structures/operations.

> I would appreciate any help.

try reducing your input amplitude and make sure your word size is big
enough to start with (like 32 bits).  another thing, you should (until
you get to block floating-point) use the DFT definition that has
either 1/N (divide by 2 each FFT pass) or 1/sqrt(N) (divide by 2 every
other FFT pass) in front of the summation.

this all will put your output data deeper into predictable noise, but
if your fixed-point numbers overflowed (especially if they wrapped
instead of saturated), you will get some *real* ugly shit in your
output.

r b-j


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kubush  
View profile  
 More options Feb 10, 8:21 am
Newsgroups: comp.dsp
From: "kubush" <ab.saybas...@gmail.com>
Date: Tue, 09 Feb 2010 20:51:58 -0600
Local: Wed, Feb 10 2010 8:21 am
Subject: Re: fixed point FFT problem with non-periodic input

>try reducing your input amplitude and

Even reducing the amplitude or having very small data did not help but

>make sure your word size is big enough to start with

playing with number of "scaling" bits helped. The problem is that scaling
bit number also depends on data size and also on periodicity. The error
rate gets worse but for some scaling  but it is not that ugly anymore :)

Thanks!


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Detlef _A  
View profile  
 More options Feb 10, 9:31 pm
Newsgroups: comp.dsp
From: "Detlef _A" <detlef.amb...@gmx.de>
Date: Wed, 10 Feb 2010 10:01:38 -0600
Local: Wed, Feb 10 2010 9:31 pm
Subject: Re: fixed point FFT problem with non-periodic input
For integer FFTs 'dynamic scaling' is widespread, i.e. in every stage of
the FFT you doublecheck the range of intermediate results and scale
accordingly.

Cheers
Detlef


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google