THE AUDITORY MODELING TOOLBOX

Applies to version: 0.9.9

View the code

Go to function

lindemann1986_centroid - Calculates the centroid for a cross-correlation

Usage

d = lindemann1986_centroid(cc)

Input parameters

cc Lindemann cross-correlation. Dim: 1 x delay line length

Output parameters

d lindemann1986_centroid in the range -1..1~ms

lindemann1986_centroid(cc) calculates the centroid for a given cross-correlation from the Lindemann model.

The centroid is computed by (see Lindemann (1986a), page 1613, eq. 22):

\begin{equation*} d = \frac{\sum_{m=-M}^{M} m*\Psi (m)}{\sum_{m=-M}^M \Psi (m) } \end{equation*}

where M is half the length of the delay line \(-M,...,M\) .

References:

W. Lindemann. Extension of a binaural cross-correlation model by contralateral inhibition. I. Simulation of lateralization for stationary signals. J. Acoust. Soc. Am., 80:1608-1622, 1986.