THE AUDITORY MODELING TOOLBOX

Applies to version: 1.6.0

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

Description:

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. The Journal of the Acoustical Society of America, 80:1608--1622, 1986.