Lektion
Die Theorie — Die schnelle Fourier-Transformation
Die schnelle Fourier-Transformation (FFT) ist jeder Algorithmus, der die diskrete Fourier-Transformation X[k] = Σ x[n] Wkn, W = e−2πi/N bis auf Rundungsfehler exakt berechnet, und zwar in etwa N log N Operationen statt N². Die Cooley-Tukey-Form spaltet N = N1N2 auf: N2 verschränkte Transformationen der Länge N1. Jede Ausgabe k1 der Transformation n2 wird mit ihrem eigenen Drehfaktor Wn2k1 multipliziert, gefolgt von N1 Transformationen der Länge N2 quer darüber. Wieder und wieder auf N = 2m angewandt, ergibt dies die Radix-2-FFT: m Stufen aus N/2 Schmetterlingen.
Was die einzelnen Symbole bedeuten
N- die Anzahl der Werte und der berechneten Frequenzen
W- die Einheitswurzel e−2πi/N; ihre Potenzen sind die Drehfaktoren
m- log2N, die Anzahl der Stufen einer Radix-2-FFT
Aufgabe vollständig gelöst
-
Gauß' anderes Beispiel: Juno, 36 Werte 4 Schritte
Artikel 41 in Gauß' Manuskript interpoliert die Mittelpunktsgleichung von Juno aus 36 Werten, alle 10° einer, aufgeteilt als 6 × 6. Wie viel Rechenaufwand erfordert die direkte Summe nach der Zählung von Cooley und Tukey, wie viel spart Gauß' Aufteilung und könnte eine feinere Aufteilung ein besseres Resultat liefern? Klick zuerst auf Gauß, 3 Perioden zu je 4: Die Seite zählt für zwölf Werte genauso.
-
Die direkte Summe, eine Operation pro Wert und Frequenz:
-
Gauß' Aufteilung, sechs Perioden zu je sechs: Die Zweischritt-Zählung von Cooley und Tukey entspricht N mal der Summe der Faktoren.
-
Bis ganz nach unten aufgeteilt, 36 = 2 × 2 × 3 × 3:
-
Die Regel von Cooley und Tukey: Ein Faktor r = st mit s, t > 1 hat immer s + t < r, es sei denn s = t = 2:
Antwort
1.296 Operationen direkt, 432 mit Gauß' 6 × 6 Aufteilung, 360 bei kompletter Aufteilung. Gauß' Aufteilung erfordert bereits dreimal weniger Arbeit, und die feinste Aufteilung spart ein weiteres Sechstel des Rests. Die zwölf Werte der Seite verhalten sich genauso: 144 direkt und 84 aufgeteilt, oder 12 × (2 + 2 + 3) = 84 erneut bei kompletter Aufteilung, weil ein Faktor von 4, aufgeteilt in 2 × 2, das Gleiche kostet.
-
Lernpfad
Die Fourier-Transformation in der Praxis
Quellen (3)
- Gauss's manuscript on trigonometric interpolation, printed after his death. Article 28 is the page's Gauss mode: twelve declinations of the northern limit of Pallas's zodiac at every 30° of right ascension, split into three periods of four and into four periods of three. Article 27 says the split extends to three or more factors and that practice will teach whoever tries it ("praxis tentantem docebit"); article 41 works Juno's equation of the centre from 36 values with the eccentricity 0.254236. The editor's note calls the text a reworking of a draft apparently begun in October 1805: C. F. Gauss, Theoria interpolationis methodo nova tractata (Nachlass). Werke, Band III, Königliche Gesellschaft der Wissenschaften, Göttingen, 1866; second printing 1876, where the treatise begins on p. 265 and arts. 25–28 are on pp. 303–310.
- The paper that showed Gauss's split is the Cooley–Tukey FFT: the change of index n = N₂n₁ + n₂, k = k₁ + N₁k₂ written as Gauss's procedure, his examples (N = 12 as 4 × 3 and 3 × 4, N = 36 as 6 × 6), the dating to October–November 1805 from the Juno eccentricity and other clues, and what the manuscript does not contain: "Gauss did not, however, go on to quantify the computational requirements of his method": M. T. Heideman, D. H. Johnson and C. S. Burrus, Gauss and the history of the fast Fourier transform. IEEE ASSP Magazine 1(4), 14–21 (October 1984). doi:10.1109/MASSP.1984.1162257
- The paper that made the FFT standard: the split N = r₁r₂ with T = N(r₁ + r₂) operations, its repetition to T = N(r₁ + … + r_m), the radix-2 form with bit-reversed order, and the count of N² operations for the direct sum against fewer than 2N log₂N, where an operation is a complex multiplication followed by a complex addition: J. W. Cooley and J. W. Tukey, An algorithm for the machine calculation of complex Fourier series. Mathematics of Computation 19(90), 297–301 (1965). doi:10.1090/S0025-5718-1965-0178586-1