![]() |
|
|
#1 |
|
"Lucan"
Dec 2006
England
194A16 Posts |
Having contemplated the statistics of large numbers
(e.g. molecules in a cc of air), I find it difficult to believe that the frequency of "floating point error exceeded 0.4" would not increase from 5% to 95% monotonically.with the exponent. How does that brief test that Prime95 performs before the FFT size is settled on predict the likelihood of such an occurence? David Last fiddled with by davieddy on 2011-04-17 at 21:15 |
|
|
|
|
|
#2 |
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
22×3×641 Posts |
George and others have conducted extensive investigations into the occurrences of floating point errors in the results of FFTs.
Also, see section 4.2.2 "Accuracy of Floating Point Arithmetic" in Knuth's The Art of Computer Programming. |
|
|
|
|
|
#3 | |
|
"Lucan"
Dec 2006
England
2·3·13·83 Posts |
Quote:
Will do. But is my gut instinct obviously wrong? David |
|
|
|
|
|
|
#4 |
|
Aug 2006
3×1,993 Posts |
|
|
|
|
|
|
#5 |
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
769210 Posts |
A fuzzy explanation:
For instance, there are guard bits. As long as a FP error is confined to the guard bits, it has zero effect on the result. So the error curve would be very low for most of a range, then at the upper end rise much faster. Monotonic, but not linear. |
|
|
|
|
|
#6 |
|
P90 years forever!
Aug 2002
Yeehaw, FL
2·53·71 Posts |
I've observed that when you increase the number of bits stuffed into each FFT word by one, the roundoff error quadruples.
|
|
|
|
|
|
#7 |
|
Jun 2003
7×167 Posts |
|
|
|
|
|
|
#8 | ||
|
"Lucan"
Dec 2006
England
2×3×13×83 Posts |
Quote:
Quote:
That was exactly the sort of simple empirical observation I was seeking when I started this thread. Does it not scream out for a simple explanation? One bit good, 2 bits bad? George Orwell BTW I've been feeding my considerable gut on errors in general and FFTs in particular for neigh on 45 years. |
||
|
|
|
|
|
#9 |
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
22·3·641 Posts |
|
|
|
|
|
|
#10 |
|
"Lucan"
Dec 2006
England
2·3·13·83 Posts |
|
|
|
|
|
|
#11 | |
|
∂2ω=0
Sep 2002
República de California
103×113 Posts |
Quote:
Note that the above heuristics work with FFT+DWT computations, but only if the DWT weights are (real or complex) of order unity. Mersenne and Fermat-mod DWT both satisfy this criterion. Last fiddled with by ewmayer on 2011-04-20 at 16:50 |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sieve file boundaries demystified | mdettweiler | No Prime Left Behind | 1 | 2010-11-07 03:09 |
| How to determine the P-1 boundaries? | Boulder | Software | 2 | 2003-08-20 11:55 |