A very simple lib to calculate the power and, the real and imag in the frequency domain for a specific frequency.
Implements Goertzel algorithm for a single target frequency, returns power and, real and imag components. This lib uses f32 to be faster. The Goertzel algorithm is very usefull when you just need to know the info on a small number of frequencies, in those cases it is faster then the calculation of all the datapoints of a buffer in a normal FFT.
-
goertzel_power( )
Uses power formula that doesnt need complexs. -
goertzel_complex( )
Gives also the you real and imag and that is useful if you want also the phase.
make
make run
MIT Open Source license
Best regards,
Joao Carvalho