outsig = weightedaveragefilter(insig,weight,fs,timeconst)
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 |
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.