% to plot the effect of frame-window variations on WER
% the test performed to vary frame from 5 to 50 ms in step of 5 ms
% to vary window from 5 to 50 ms in step of 5 ms.
% the HMM Speech Recognition System on TIDigits 
% experiment conducted between 18th Nov. 2004 to 24th Nov, 2004.
% The second purpose was to submit the jobs to the cluster all at a time.

clear all;
close all;
clc;
[window,frame] = meshgrid(5:5:50);
wer = [ 2.7  2.7 1.6 1.5 1.7 1.8 1.8 1.9 1.9 2.1;
1.5 0.8 0.7 0.6 0.7 0.6 0.7 0.7 0.6 0.6;
1.4 0.8 0.7 0.6 0.7 0.6 0.6 0.6 0.6 0.6;
2.2 1.2 1.0 0.9 0.9 0.9 0.8 0.8 0.9 0.8;
3.8 2.8 2.5 2.2 2.1 2.1 2.0 2.0 2.0 2.0;
9.0 8.5 7.4 6.8 6.6 6.7 6.5 6.4 6.5 6.4;
18.9 18.9 17.1 16.2 16.1 16.0 15.8 15.6 15.3 15.5;
31.6 31.1 28.7 27.6 27.7 27.4 26.9 26.8 26.7 27.0;
41.6 41.1 39.4 37.8 37.4 37.0 37.0 36.5 36.7 36.6;
49.2 48.0 46.3 45.0 45.4 45.2 44.6 44.6 44.8 44.5];
surf(window, frame, wer)
xlabel('window (ms)'); ylabel('frame (ms)'); zlabel(' WER (%)');
title('Effect of variation of Frame-Window on WER');

% figure;
% mesh(window, frame, wer)