Applies to version: 0.9.8

View the code

Go to function

takanen2013_weightedaveragefilter - Compute the weighted or self-weighted average


outsig = takanen2013_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

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)


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.