takanen2013_weightedaveragefilter - Compute the weighted or self-weighted average
outsig = takanen2013_weightedaveragefilter(insig,weight,fs,timeconst)
||signal from which the average is computed. Optionally,
can be the same as the weight resulting in
||signal to be used as weight in the computation|
||time constant specifying the first-order IIR filter|
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,
M. Takanen, O. Santala, and V. Pulkki.
Perceptually encoded signals and their assessment.
In J. Blauert, editor, The technology of binaural listening.