I am trying to apply GCC-PHAT algorithm here to process audio files and find delay between them. Im coding using Android and Java with the help of this library, and comparing the results with Matlab.
Till now, everything is going right, till i get to the module part. as you can see in the article i have to calculate the abs(convolution). In Matlab, the output is a Matrix (i didnt understand why). I am confused how to do that in Java, should i divide each field of the convolution output array by each field on the convolution module part like this:
for(int i=0;i<conv_abs.length;i++)
{
G[i] = out_real[i]/conv_abs[i];
}
or should i divide each number in out_real by the whole array conv_abs.
In Matlab, every thing is treated as a matrix. conv is the command to use for convolution. If you share the code you used I can check and comment.