The Auditory Modeling Toolbox

Applies to version: 0.9.8

View the code

Go to function

WEIGHTEDAVERAGEFILTER - Compute the weighted or self-weighted average

Usage

outsig = weightedaveragefilter(insig,weight,fs,timeconst)

Input parameters

insig signal from which the average is computed. Optionally, can be the same as the weight resulting in self-weighted average
weight signal to be used as weight in the computation
fs sampling rate
timeconst time constant specifying the first-order IIR filter

Output parameters

outsig output signal

Description

This function computes the either the weighted or the self-weighted average of the input signal using a first-order IIR filter whose time constant is specified by the timeconst argument. More details about the conputation can be found in Pulkki, Hirvonen 2009 (Sec. 3.2.3)

References:

V. Pulkki and T. Hirvonen. Functional count-comparison model for binaural decoding. Acta Acustica united with Acustica, 95(5):883 - 900, Sept./Oct. 2009.

M. Takanen, O. Santala, and V. Pulkki. Perceptually encoded signals and their assessment. In J. Blauert, editor, The technology of binaural listening. Springer, 2013.