THE AUDITORY MODELING TOOLBOX

Applies to version: 1.0.0

View the code

Go to function

may2011_xcorrnorm - Normalized time-domain cross-correlation function

Usage

[XCORR,LAGS] = may2011_xcorrnorm(INL,INR)
[XCORR,LAGS] = may2011_xcorrnorm(INL,INR,MAXLAG,bDETREND,bNORM)

Input parameters

INL left input arranged as [nSamples x nChannels]
INR right input arranged as [nSamples x nChannels]
MAXLAG
computation is performned over the lag range -MAXLAG:MAXLAG

System Message: WARNING/2 (<string>, line 25)

Block quote ends without a blank line; unexpected unindent.

(default, MAXLAG = nSamples-1)

bDETREND substract mean (default, bDETREND = true)
bNORM normalization flag (default, bNORM = true)

Output parameters

XCORR cross-correlation function [nSamples x nChannels]
LAGS time lags of cross-correlation function [2*MAXLAG+1 x 1]