xiongyihui/tdoa

About gcc_phat funtion

jasdasdf opened this issue · 3 comments

Hi,
the function gcc_phat(sig, refsig, fs=1, max_tau=None, interp=16):
what do max_tau and interp stand for,respectively.
thanks a lot.

Hi,
the function gcc_phat(sig, refsig, fs=1, max_tau=None, interp=16):
what do max_tau and interp (why 16?) stand for,respectively.
thanks a lot.

max_tau is the max offset of sig and refsig. For DOA, max_tau depends on the distance of two microphone.
interp is interpolation, used to improve the resolution of the offset.
when interp is 1, the resolution of the offset is 1.
when interp is 2, the resolution of the offset is 0.5.

Great, Thanks for the answer, So, In my data, the sampling frequency is 20KHz. Do you think that interp can be 1?
Also, fs is 1 in your code, should I put fs=20KHz? Or fs is another thing that I do not know.