Thread Subject:
Generalized cross correlation

Subject: Generalized cross correlation

From: Kamran Iranpour

Date: 20 Aug, 2012 07:02:59

Message: 1 of 6

Generelized cross-correlation (GCC) is said to be a better estimate of
cross-correlation for time-delay estimation between channels. It is a
whitening technique on cross-cspectra.
I have this small code for computing the GCC:

fChannel1 = fft(channel1);
fChannel2 = fft(channel2);
conjFChannel2 = conj(fChannel2);
num = (fChannel1).*conjFChannel2;
den = abs((fChannel1).*(conjFChannel2));
fGeneralized = num./(den+eps);
generalizedCrossCorrelation = ifft(fGeneralized);
[maxcorr phind] = max(fftshift(generalizedCrossCorrelation));

But my "phind" which is is the index of maximum is always zero. Is
anyone familiar with the technique?

Thanks,

Kamran

Subject: Generalized cross correlation

From: Bruno Luong

Date: 20 Aug, 2012 07:19:07

Message: 2 of 6

You should apply GCV on the signal residual, not the signal itself.

Bruno

Subject: Generalized cross correlation

From: Kamran Iranpour

Date: 20 Aug, 2012 11:01:50

Message: 3 of 6

Thanks Bruno, as always right.

Kamran


Bruno Luong skrev:
> You should apply GCV on the signal residual, not the signal itself.
>
> Bruno

Subject: Generalized cross correlation

From: Kamran Iranpour

Date: 20 Aug, 2012 11:10:41

Message: 4 of 6

On 20 Aug, 09:19, "Bruno Luong" <b.lu...@fogale.findmycountry> wrote:
> You should apply GCV on the signal residual, not the signal itself.
>
> Bruno

Thanks Bruno, as always correct.

Kamran

Subject: Generalized cross correlation

From: Dimitris

Date: 27 Aug, 2012 10:23:12

Message: 5 of 6

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <k0sodb$ps$1@newscl01ah.mathworks.com>...
> You should apply GCV on the signal residual, not the signal itself.
>
> Bruno

Hi Bruno,
can you be more specific?

Dimitris

Subject: Generalized cross correlation

From: ml Lin

Date: 26 Jan, 2013 04:26:09

Message: 6 of 6

"Dimitris" wrote in message <k1fhqg$hud$1@newscl01ah.mathworks.com>...
> "Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <k0sodb$ps$1@newscl01ah.mathworks.com>...
> > You should apply GCV on the signal residual, not the signal itself.
> >
> > Bruno
>
> Hi Bruno,
> can you be more specific?
>
> Dimitris

Hi Bruno,

I am encountering this problem too.
Do you think you can provide us with more details?
Do you mean that I need to create a specific model to get the residual signal?
Or perhaps you can make slight amendments to Kamran's original code to enlighten us?

ML

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us