% Profile_Karjalainen96
%
% This profile matches with the simple temporal window model 
% presented in (Karjalainen, 1996). 
% 
% This file is a part of HUTear- Matlab toolbox for auditory
% modeling. The toolbox is available at 
% http://www.acoustics.hut.fi/software/HUTear/

% Copyrights: Aki Härmä, Helsinki University of Technology, 
% Laboratory of Acoustics and Audio Signal Processing, 
% Espoo, Finland.
% Date: August 20 1999
% Email: Aki.Harma@hut.fi
clear model;

model.id = 'Auditory model by (Karjalainen, 1996)';
model.fs = 44100; % Sampling frequency
model.ds = 1;     % Outputs downsampled to rate fs/ds

% Outer and middle ear filtering
model.outmid.id='Fixed filter'; 
model.outmid.file='MAF255';

% Model for inner ear 
model.cochlea.id='Gammatone filterbank';
model.cochlea.gt.design='gammatone'; 
model.cochlea.gt.nch=64;
model.cochlea.gt.frange=[200 22050];

% Mechanical to neural - haircell
model.haircell.id = 'Half-wave rectification and filtering';
% Rectification
model.haircell.rcf.r='half';
% Compression
model.haircell.rcf.c=1; % No compression (power to 1)
% Smoothing
model.haircell.rcf.f='tw20'; 
% Thresholding
model.haircell.rcf.thrhld=0.0;

% Neural adaptation
model.neural.id ='Non-linear adaptation network';
model.neural.function ='Karjalainen96';
model.neural.Karjalainen.fast=1; % Slow output, otherwise Fast



