function [AvgLogX] = averageLogSpectrum(x, L)
	AvgLogX = zeros(L,1);
	iterator = 0;
	for i = 1:L:length(x)-L
		X = fft(x(i:i+L-1))+10^-200;
		LogX = log(X);
		AvgLogX = AvgLogX + LogX; 
		iterator = iterator + 1;
	end
	AvgLogX = AvgLogX / iterator;
end