Take the 2-minute tour ×
Signal Processing Stack Exchange is a question and answer site for practitioners of the art and science of signal, image and video processing. It's 100% free, no registration required.

I'm reading a Goertzel algorithm paper and an embedded article. I have several questions:

  1. I don't understand why the the magnitude is calculated as follows:

$$\text{Magnitude} = y^2[n-2] + y^2[n-1] - a * y[n-2]y[n-1]$$ where $a$ is some coefficient. Can someone elaborate on why this is the expression?

  1. Minimum block size If I have a sampling rate of 4000 Hz and target frequency of 50 Hz, what is the minimum block size?

  2. If block size more that magnitude will more accurate right?

share|improve this question
    
What are you not understanding? The first link shows a step-by-step derivation of the equation you're asking about. –  Jason R Sep 28 '12 at 14:39
    
How the step from Output and Input become to magnitude? –  mem mo Sep 28 '12 at 16:14
    
Great article here: asp.eurasipjournals.com/content/2012/1/56 –  P i Mar 15 at 19:29

1 Answer 1

[1] It's a notch filter. It attenuates everything but the frequency component you're interested in. The output is summed up over some time to make the tone detection more reliable. [2] There's no minimum block size. There's a requirement about the amount of time spent summing up the output. What you'll see is that the summed output over say 205 samples (at fs 8000kHz), grows much more if the input contains the frequency component you're interested in detecting.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.