Hallo zusammen,
ich habe eine Frage zum G=F6rtzel Algorithmus. Unter
-------------------------------------------------------- Goertzel block size N is like the number of points in an equivalent FFT. It controls the frequency resolution (also called bin width). For example, if your sampling rate is 8kHz and N is 100 samples, then your bin width is 80Hz.
This would steer you towards making N as high as possible, to get the highest frequency resolution. The catch is that the higher N gets, the longer it takes to detect each tone, simply because you have to wait longer for all the samples to come in. For example, at 8kHz sampling, it will take 100ms for 800 samples to be accumulated. If you're trying to detect tones of short duration, you will have to use compatible values of N.
The third factor influencing your choice of N is the relationship between the sampling rate and the target frequencies. Ideally you want the frequencies to be centered in their respective bins. In other words, you want the target frequencies to be integer multiples of sample_rate/N.
The good news is that, unlike the FFT, N doesn't have to be a power of two.
--------------------------------------------------------
Ich habe 2 Fragen:
1.) Wie kann ich mir die BINs vorstellen. Im Text werden diese auch als Frequenzauf=F6sung bezeichnet. Ist meine Annahme richtig, das bei einem BIN von 80Hz mein erfasstes Signal sozusagen in 80Hz Bl=F6cke aufgel=F6st wird?
2.) Wenn meine Annahme unter Punkt 1 stimmt, wie ist es dann zu verstehen, das f=FCr eine zentrale Anordnung meiner Zielfrequenz in den BINs, die Zielfrequenz ein ganzzahliges Vielfaches der Sampelfrequenz/ N sein muss.
Annahme: Sampelrate =3D 8kHz Blockgr=F6=DFe =3D 400 Wunsch Zielfrequenz =3D 100Hz
Pr=FCfung auf ganzahliges Vielfaches:
5*8kHz/400 =3D 100Hz Bedingung erf=FCllt: 5 ist ganzahliges Vielfaches
Bei der Samplefrequenz von 8kHz und einer Blockgr=F6=DFe von N=3D400 ergibt sich ein BIN von 8kHz/400=3D20Hz. Wenn meine Annahme von Punkt 1 richtig ist, d.h. also mein Signal in 20Hz Bl=F6cke aufgeteilt wird, liegt meine Zielfrequenz allerdings nicht in der Mitte eines 20Hz Blocks, sondern direkt auf dem Rand, da 5*20Hz =3D 100Hz.
Wo habe ich einen Gedankenfehler?
Vielen Dank f=FCr Eure Hilfe.
Gru=DF Michael