[slow,fast]=karjalainen1996(insig,fs)
[slow,fast]=karjalainen1996(insig,fs) computes the non-linear adaptation network from Karjalainen et al. (1996) on the input signal insig sampled with a sampling frequency of fs Hz.
The following show the adapation to a simple test signal:
[insig,fs] = greasy; [slow,fast]=karjalainen1996(insig,fs); subplot(1,2,1); plot(slow); subplot(1,2,2); plot(fast);
This file (and the corresponding mex file) where originally part of HUTear- Matlab toolbox for auditory modeling. The toolbox is available at http://www.acoustics.hut.fi/software/HUTear/