input = 65.0;   % lifadapt 100Hz
%input = 8.0;   % lifadapt 10Hz
%input = 15.7;  % lif 100Hz
%input = 8.3;   % lif 10Hz
trials = 10;
tmax = 100.0;
Dnoise = 0.1;
Dounoise = 5e1;
outau = 10.0;
adapttau = 0.1;
adaptincr = 5.0;

%spikes = lifouadaptspikes( trials, input, 1.0, Dnoise, Dounoise, outau, adapttau, adaptincr );
%spikeraster( spikes );
%return;

% generate spikes:
%spikes = lifspikes( trials, input, tmax, noise );
spikes = lifouspikes( trials, input, tmax, Dounoise, outau );
%spikes = lifadaptspikes( trials, input, tmax, Dnoise, adapttau, adaptincr );
%spikes = lifouadaptspikes( trials, input, tmax, Dnoise, Dounoise, outau, adapttau, adaptincr );

fano( spikes );
