annotate analyse.html @ 1463:c660254104e3

Merge
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Wed, 25 Nov 2015 09:27:05 +0000
parents bd5cbaf775cd
children babd5366db49 888292c88c33
rev   line source
nickjillings@1452 1 <!DOCTYPE html>
nickjillings@1452 2 <html lang="en">
nickjillings@1452 3 <head>
nickjillings@1452 4 <meta charset="utf-8">
nickjillings@1452 5
nickjillings@1452 6 <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
nickjillings@1452 7 Remove this if you use the .htaccess -->
nickjillings@1452 8 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
nickjillings@1452 9
nickjillings@1452 10 <title>Analysis</title>
nickjillings@1452 11 <meta name="description" content="Show results from subjective evaluation">
nickjillings@1452 12 <meta name="author" content="Brecht De Man">
nickjillings@1452 13
nickjillings@1452 14 <script type="text/javascript" src="https://www.google.com/jsapi"></script>
nickjillings@1452 15 <script type="text/javascript">
nickjillings@1452 16 // To aid 'one-page set-up' all scripts and CSS must be included directly in this file!
nickjillings@1452 17
nickjillings@1452 18 //google.load("visualization", "1", {packages:["corechart"]});
nickjillings@1452 19
nickjillings@1452 20 /*************
nickjillings@1452 21 * SETUP *
nickjillings@1452 22 *************/
nickjillings@1452 23 // folder where to find the XML files
nickjillings@1452 24 xmlFileFolder = "analysis_test";
nickjillings@1452 25 // array of XML files
nickjillings@1452 26 var xmlFiles = ['McG-A-2013-09.xml', 'McG-A-2014-03.xml', 'McG-A-2014-12.xml', 'McG-B-2013-09.xml',
nickjillings@1452 27 'McG-B-2014-03.xml', 'McG-B-2014-12.xml', 'McG-C-2013-09.xml', 'McG-C-2014-03.xml', 'McG-C-2014-12.xml',
nickjillings@1452 28 'McG-D-2013-09.xml', 'McG-D-2014-03.xml', 'McG-D-2014-12.xml', 'McG-E-2013-09.xml', 'McG-E-2014-03.xml',
nickjillings@1452 29 'McG-E-2014-12.xml', 'McG-F-2013-09.xml', 'McG-F-2014-03.xml', 'McG-F-2014-12.xml', 'McG-G-2014-03.xml',
nickjillings@1452 30 'McG-G-2014-12.xml', 'McG-H-2013-09.xml', 'McG-H-2014-03.xml', 'McG-H-2014-12.xml', 'McG-I-2013-09.xml',
nickjillings@1452 31 'McG-I-2014-03.xml', 'McG-J-2013-09.xml', 'McG-J-2014-03.xml', 'McG-K-2013-09.xml', 'McG-K-2014-03.xml',
nickjillings@1452 32 'McG-L-2013-09.xml', 'McG-L-2014-03.xml', 'McG-M-2013-09.xml', 'McG-M-2014-03.xml', 'McG-N-2013-09.xml',
nickjillings@1452 33 'McG-N-2014-03.xml', 'McG-O-2013-09.xml', 'McG-O-2014-03.xml', 'McG-P-2013-09.xml', 'McG-P-2014-03.xml',
nickjillings@1452 34 'McG-pro1-2013-09.xml', 'McG-pro1-2014-03.xml', 'McG-pro1-2014-12.xml', 'McG-pro2-2013-09.xml',
nickjillings@1452 35 'McG-pro2-2014-03.xml', 'McG-pro2-2014-12.xml', 'McG-Q-2014-12.xml', 'McG-R-2014-12.xml',
nickjillings@1452 36 'McG-S-2014-12.xml', 'McG-subA-2013-09.xml', 'McG-subA-2014-03.xml', 'McG-subB-2014-03.xml',
nickjillings@1452 37 'McG-subB-2014-12.xml', 'McG-subC-2013-09.xml', 'McG-subC-2014-03.xml', 'McG-subC-2014-12.xml',
nickjillings@1452 38 'McG-subD-2013-09.xml', 'McG-subD-2014-12.xml', 'McG-subE-2014-12.xml', 'McG-subG-2014-12.xml',
nickjillings@1452 39 'McG-subH-2013-09.xml', 'McG-T-2014-12.xml', 'McG-U-2014-12.xml', 'McG-V-2014-12.xml',
nickjillings@1452 40 'McG-W-2014-12.xml', 'McG-X-2014-12.xml', 'MG1-2013-09.xml', 'MG2-2013-09.xml', 'MG3-2013-09.xml',
nickjillings@1452 41 'MG4-2013-09.xml', 'MG5-2013-09.xml', 'MG6-2013-09.xml', 'MG7-2013-09.xml', 'MG8-2013-09.xml',
nickjillings@1452 42 'MG9-2013-09.xml', 'QM-1-1.xml', 'QM-1-2.xml', 'QM-10-1.xml', 'QM-11-1.xml', 'QM-11-2.xml', 'QM-12-1.xml', 'QM-12-2.xml',
nickjillings@1452 43 'QM-13-1.xml', 'QM-14-1.xml', 'QM-15-1.xml', 'QM-16-1.xml', 'QM-17-1.xml', 'QM-18-1.xml', 'QM-18-2.xml',
nickjillings@1452 44 'QM-18-3.xml', 'QM-19-1.xml', 'QM-2-1.xml', 'QM-2-2.xml', 'QM-2-3.xml', 'QM-20-1.xml', 'QM-20-2.xml',
nickjillings@1452 45 'QM-20-3.xml', 'QM-21-1.xml', 'QM-21-2.xml', 'QM-3-1.xml', 'QM-3-2.xml', 'QM-3-3.xml', 'QM-4-1.xml', 'QM-5-1.xml',
nickjillings@1452 46 'QM-5-2.xml', 'QM-6-1.xml', 'QM-6-2.xml', 'QM-7-1.xml', 'QM-7-2.xml', 'QM-8-1.xml', 'QM-9-1.xml',
nickjillings@1452 47 'PXL-L1.xml','PXL-L2.xml','PXL-L3.xml','PXL-L4.xml','PXL-L5.xml','PXL-S1.xml','PXL-S2.xml','PXL-S3.xml',
nickjillings@1452 48 'PXL-S4.xml','PXL-S5.xml','PXL-S6.xml','PXL-S7.xml','PXL-pro.xml','DU-A1.xml','DU-A2.xml','DU-B1.xml',
nickjillings@1452 49 'DU-B2.xml','DU-C1.xml','DU-C2.xml','DU-D1.xml','DU-D2.xml','DU-E1.xml','DU-F1.xml','DU-F2.xml','DU-G1.xml',
nickjillings@1452 50 'DU-G2.xml','DU-H1.xml','DU-H2.xml','DU-I2.xml','DU-J2.xml','DU-K1.xml','DU-K2.xml','DU-L1.xml','DU-L2.xml',
nickjillings@1452 51 'DU-M1.xml','DU-M2.xml','DU-N1.xml','DU-O1.xml','DU-O2.xml','DU-P1.xml','DU-P2.xml','DU-Q1.xml','DU-Q2.xml',
nickjillings@1452 52 'DU-R1.xml','DU-R2.xml','DU-S1.xml','DU-S2.xml','DU-T1.xml','DU-T2.xml','DU-U1.xml','DU-U2.xml','DU-U3.xml'];
nickjillings@1452 53 //['QM-1-1.xml','QM-2-1.xml','QM-2-2.xml','QM-2-3.xml','QM-3-1.xml','QM-3-2.xml','QM-4-1.xml','QM-5-1.xml','QM-5-2.xml','QM-6-1.xml','QM-6-2.xml','QM-7-1.xml','QM-7-2.xml','QM-8-1.xml','QM-9-1.xml','QM-10-1.xml','QM-11-1.xml','QM-12-1.xml','QM-12-2.xml','QM-13-1.xml','QM-14-1.xml','QM-15-1.xml','QM-16-1.xml','QM-17-1.xml','QM-18-1.xml','QM-18-2.xml','QM-18-3.xml','QM-19-1.xml','QM-20-1.xml','QM-20-2.xml','QM-20-3.xml','QM-21-1.xml','QM-21-2.xml'];
nickjillings@1452 54 //['McG-A-2014-03.xml','McG-B-2014-03.xml','McG-C-2014-03.xml','McG-D-2014-03.xml','McG-E-2014-03.xml','McG-F-2014-03.xml','McG-G-2014-03.xml','McG-H-2014-03.xml'];
nickjillings@1452 55
nickjillings@1452 56 //TODO: make retrieval of file names automatic / drag files on here
nickjillings@1452 57
nickjillings@1452 58 /****************
nickjillings@1452 59 * VARIABLES *
nickjillings@1452 60 ****************/
nickjillings@1452 61
nickjillings@1452 62 // Counters
nickjillings@1452 63 // How many files, audioholders, audioelementes and statements annotated (don't count current one)
nickjillings@1452 64 var numberOfFiles = -1;
nickjillings@1452 65 var numberOfaudioholders = -1;
nickjillings@1452 66 var numberOfaudioelementes = -1;
nickjillings@1452 67 var numberOfStatements = -1;
nickjillings@1452 68 var numberOfSkippedComments = 0;
nickjillings@1452 69
nickjillings@1452 70 // Object arrays
nickjillings@1452 71 var fileNameArray = [];
nickjillings@1452 72 var subjectArray = [];
nickjillings@1452 73 var audioholderArray = [];
nickjillings@1452 74 var audioelementArray = [];
nickjillings@1452 75
nickjillings@1452 76 // End of (file, audioholder, audioelement) flags
nickjillings@1452 77 var newFile = true;
nickjillings@1452 78 var newAudioHolder = true;
nickjillings@1452 79 var newAudioElement = true;
nickjillings@1452 80
nickjillings@1452 81 var fileCounter = 0; // file index
nickjillings@1452 82 var audioholderCounter=0; // audioholder index (current XML file)
nickjillings@1452 83 var audioelementCounter=0; // audioelement index (current audioholder)
nickjillings@1452 84 var statementNumber=0; // total number of statements
nickjillings@1452 85
nickjillings@1452 86 var root; // root of XML file
nickjillings@1452 87 var commentInFull = ''; // full comment
nickjillings@1452 88
nickjillings@1452 89 var playAudio = true; // whether corresponding audio should be played back
nickjillings@1452 90
nickjillings@1452 91 // // Measuring time
nickjillings@1452 92 // var lastTimeMeasured = -1; //
nickjillings@1452 93 // var durationLastAnnotation = -1; // duration of last annotation
nickjillings@1452 94 // var timeArray = [];
nickjillings@1452 95 // var MIN_TIME = 1.0; // minimum time counted as significant
nickjillings@1452 96 // var measurementPaused = false; // whether time measurement is paused
nickjillings@1452 97 // var timeInBuffer = 0; //
nickjillings@1452 98
nickjillings@1452 99 var topLevel;
nickjillings@1452 100 window.onload = function() {
nickjillings@1452 101 // Initialise page
nickjillings@1452 102 topLevel = document.getElementById('topLevelBody');
nickjillings@1452 103 var setup = document.createElement('div');
nickjillings@1452 104 setup.id = 'setupTagDiv';
nickjillings@1452 105 loadAllFiles();
nickjillings@1452 106 printSurveyData()
nickjillings@1452 107 //makePlots();
nickjillings@1452 108 // measure time at this point:
nickjillings@1452 109 lastTimeMeasured = new Date().getTime(); // in milliseconds
nickjillings@1452 110 };
nickjillings@1452 111
nickjillings@1452 112 // Assert function
nickjillings@1452 113 function assert(condition, message) {
nickjillings@1452 114 if (!condition) {
nickjillings@1452 115 message = message || "Assertion failed";
nickjillings@1452 116 if (typeof Error !== "undefined") {
nickjillings@1452 117 throw new Error(message);
nickjillings@1452 118 }
nickjillings@1452 119 throw message; // Fallback
nickjillings@1452 120 }
nickjillings@1452 121 }
nickjillings@1452 122
nickjillings@1452 123 function median(values) { // TODO: replace code by '50th percentile' - should be the same?
nickjillings@1452 124 values.sort( function(a,b) {return a - b;} );
nickjillings@1452 125 var half = Math.floor(values.length/2);
nickjillings@1452 126 if(values.length % 2)
nickjillings@1452 127 return values[half];
nickjillings@1452 128 else
nickjillings@1452 129 return (values[half-1] + values[half]) / 2.0;
nickjillings@1452 130 }
nickjillings@1452 131
nickjillings@1452 132 function percentile(values, n) {
nickjillings@1452 133 values.sort( function(a,b) {return a - b;} );
nickjillings@1452 134 // get ordinal rank
nickjillings@1452 135 var rank = Math.min(Math.floor(values.length*n/100), values.length-1);
nickjillings@1452 136 return values[rank];
nickjillings@1452 137 }
nickjillings@1452 138
nickjillings@1452 139 /***********************
nickjillings@1452 140 * TIME MEASUREMENT *
nickjillings@1452 141 ************************/
nickjillings@1452 142
nickjillings@1452 143 // measure time since last time this function was called
nickjillings@1452 144 function timeSinceLastCall() {
nickjillings@1452 145 // current time
nickjillings@1452 146 var currentTime = new Date().getTime();
nickjillings@1452 147 // calculate time difference
nickjillings@1452 148 var timeDifference = currentTime - lastTimeMeasured + timeInBuffer;
nickjillings@1452 149 // clear buffer (for pausing)
nickjillings@1452 150 timeInBuffer = 0;
nickjillings@1452 151 // remember last measured time
nickjillings@1452 152 lastTimeMeasured = currentTime;
nickjillings@1452 153 return timeDifference;
nickjillings@1452 154 }
nickjillings@1452 155
nickjillings@1452 156 // pause time measurement
nickjillings@1452 157 function pauseTimeMeasurement() {
nickjillings@1452 158 // UN-PAUSE
nickjillings@1452 159 if (measurementPaused) { // already paused
nickjillings@1452 160 // button shows 'pause' again
nickjillings@1452 161 document.getElementById('pauseButton').innerHTML = 'Pause';
nickjillings@1452 162 // toggle state
nickjillings@1452 163 measurementPaused = false;
nickjillings@1452 164 // resume time measurement
nickjillings@1452 165 lastTimeMeasured = new Date().getTime(); // reset time, discard time while paused
nickjillings@1452 166 } else { // PAUSE
nickjillings@1452 167 // button shows 'resume'
nickjillings@1452 168 document.getElementById('pauseButton').innerHTML = 'Resume';
nickjillings@1452 169 // toggle state
nickjillings@1452 170 measurementPaused = true;
nickjillings@1452 171 // pause time measurement
nickjillings@1452 172 timeInBuffer = timeSinceLastCall();
nickjillings@1452 173 }
nickjillings@1452 174 }
nickjillings@1452 175
nickjillings@1452 176 // show elapsed time on interface
nickjillings@1452 177 function showTimeElapsedInSeconds() {
nickjillings@1452 178 // if paused: un-pause
nickjillings@1452 179 if (measurementPaused) {
nickjillings@1452 180 pauseTimeMeasurement();
nickjillings@1452 181 }
nickjillings@1452 182
nickjillings@1452 183 // time of last annotation
nickjillings@1452 184 var lastAnnotationTime = timeSinceLastCall()/1000;
nickjillings@1452 185 document.getElementById('timeDisplay').innerHTML = lastAnnotationTime.toFixed(2);
nickjillings@1452 186 // average time over last ... annotations
nickjillings@1452 187 var avgAnnotationTime;
nickjillings@1452 188 var numberOfElementsToAverage =
nickjillings@1452 189 document.getElementById('numberOfTimeAverages').value;
nickjillings@1452 190 if (isPositiveInteger(numberOfElementsToAverage)) {
nickjillings@1452 191 avgAnnotationTime =
nickjillings@1452 192 calculateAverageTime(lastAnnotationTime,
nickjillings@1452 193 Number(numberOfElementsToAverage));
nickjillings@1452 194 } else {
nickjillings@1452 195 // change text field content to 'ALL'
nickjillings@1452 196 document.getElementById('numberOfTimeAverages').value = 'ALL';
nickjillings@1452 197 avgAnnotationTime = calculateAverageTime(lastAnnotationTime, -1);
nickjillings@1452 198 }
nickjillings@1452 199 document.getElementById('timeAverageDisplay').innerHTML = avgAnnotationTime.toFixed(2);
nickjillings@1452 200 }
nickjillings@1452 201
nickjillings@1452 202 // auxiliary function: is string a positive integer?
nickjillings@1452 203 // http://stackoverflow.com/questions/10834796/...
nickjillings@1452 204 // validate-that-a-string-is-a-positive-integer
nickjillings@1452 205 function isPositiveInteger(str) {
nickjillings@1452 206 var n = ~~Number(str);
nickjillings@1452 207 return String(n) === str && n >= 0;
nickjillings@1452 208 }
nickjillings@1452 209
nickjillings@1452 210 // calculate average time
nickjillings@1452 211 function calculateAverageTime(newTimeMeasurementInSeconds,numberOfPoints) {
nickjillings@1452 212 // append last measurement time to time array, if significant
nickjillings@1452 213 if (newTimeMeasurementInSeconds > MIN_TIME) {
nickjillings@1452 214 timeArray.push(newTimeMeasurementInSeconds);
nickjillings@1452 215 }
nickjillings@1452 216 // average over last N elements of this array
nickjillings@1452 217 if (numberOfPoints < 0 || numberOfPoints>=timeArray.length) { // calculate average over all
nickjillings@1452 218 var sum = 0;
nickjillings@1452 219 for (var i = 0; i < timeArray.length; i++) {
nickjillings@1452 220 sum += timeArray[i];
nickjillings@1452 221 }
nickjillings@1452 222 averageOfTimes = sum/timeArray.length;
nickjillings@1452 223 } else { // calculate average over specified number of times measured last
nickjillings@1452 224 var sum = 0;
nickjillings@1452 225 for (var i = timeArray.length-numberOfPoints; i < timeArray.length; i++) {
nickjillings@1452 226 sum += timeArray[i];
nickjillings@1452 227 }
nickjillings@1452 228 averageOfTimes = sum/numberOfPoints;
nickjillings@1452 229 }
nickjillings@1452 230 return averageOfTimes;
nickjillings@1452 231 }
nickjillings@1452 232
nickjillings@1452 233
nickjillings@1452 234 /********************************
nickjillings@1452 235 * PLAYBACK OF AUDIO *
nickjillings@1452 236 ********************************/
nickjillings@1452 237
nickjillings@1452 238 //PLAYaudioelement
nickjillings@1452 239 // Keep track of whether audio should be played
nickjillings@1452 240 function playFlagChanged(){
nickjillings@1452 241 playAudio = playFlag.checked; // global variable
nickjillings@1452 242
nickjillings@1452 243 if (!playAudio){ // if audio needs to stop
nickjillings@1452 244 audio.pause(); // stop audio - if anything is playing
nickjillings@1452 245 currently_playing = ''; // back to empty string so playaudioelement knows nothing's playing
nickjillings@1452 246 }
nickjillings@1452 247 }
nickjillings@1452 248
nickjillings@1452 249 // audioholder that's currently playing
nickjillings@1452 250 var currently_playing_audioholder = ''; // at first: empty string
nickjillings@1452 251 var currently_playing_audioelement = '';
nickjillings@1452 252 var audio;
nickjillings@1452 253
nickjillings@1452 254 // Play audioelement of audioholder if available, from start or from same position
nickjillings@1452 255 function playaudioelement(audioholderName, audioelementerName){
nickjillings@1452 256 if (playAudio) { // if enabled
nickjillings@1452 257 // get corresponding file from folder
nickjillings@1452 258 var file_location = 'audio/'+audioholderName + '/' + audioelementerName + '.mp3'; // fixed path and file name format
nickjillings@1452 259
nickjillings@1452 260 // if not available, show error/warning message
nickjillings@1452 261 //TODO ...
nickjillings@1452 262
nickjillings@1452 263 // if nothing playing yet, start playing
nickjillings@1452 264 if (currently_playing_audioholder == ''){ // signal that nothing is playing
nickjillings@1452 265 //playSound(audioBuffer);
nickjillings@1452 266 audio = new Audio(file_location);
nickjillings@1452 267 audio.loop = true; // loop when end is reached
nickjillings@1452 268 audio.play();
nickjillings@1452 269 currently_playing_audioholder = audioholderName;
nickjillings@1452 270 currently_playing_audioelement = audioelementerName;
nickjillings@1452 271 } else if (currently_playing_audioholder != audioholderName) {
nickjillings@1452 272 // if different audioholder playing, stop that and start playing
nickjillings@1452 273 audio.pause(); // stop audio
nickjillings@1452 274 audio = new Audio(file_location); // load new file
nickjillings@1452 275 audio.loop = true; // loop when end is reached
nickjillings@1452 276 audio.play(); // play audio from the start
nickjillings@1452 277 currently_playing_audioholder = audioholderName;
nickjillings@1452 278 currently_playing_audioelement = audioelementerName;
nickjillings@1452 279 } else if (currently_playing_audioelement != audioelementerName) {
nickjillings@1452 280 // if same audioholder playing, start playing from where it left off
nickjillings@1452 281 skipTime = audio.currentTime; // time to skip to
nickjillings@1452 282 audio.pause(); // stop audio
nickjillings@1452 283 audio = new Audio(file_location);
nickjillings@1452 284 audio.addEventListener('loadedmetadata', function() {
nickjillings@1452 285 this.currentTime = skipTime;
nickjillings@1452 286 console.log('Loaded '+audioholderName+'-'+audioelementerName+', playing from '+skipTime);
nickjillings@1452 287 }, false); // skip to same time when audio is loaded!
nickjillings@1452 288 audio.loop = true; // loop when end is reached
nickjillings@1452 289 audio.play(); // play from that time
nickjillings@1452 290 audio.currentTime = skipTime;
nickjillings@1452 291 currently_playing_audioholder = audioholderName;
nickjillings@1452 292 currently_playing_audioelement = audioelementerName;
nickjillings@1452 293 }
nickjillings@1452 294 // if same audioelement playing: keep on playing (i.e. do nothing)
nickjillings@1452 295 }
nickjillings@1452 296 }
nickjillings@1452 297
nickjillings@1452 298 /********************
nickjillings@1452 299 * READING FILES *
nickjillings@1452 300 ********************/
nickjillings@1452 301
nickjillings@1452 302 // Read necessary data from XML file
nickjillings@1452 303 function readXML(xmlFileName){
nickjillings@1452 304 if (window.XMLHttpRequest)
nickjillings@1452 305 {// code for IE7+, Firefox, Chrome, Opera, Safari
nickjillings@1452 306 xmlhttp=new XMLHttpRequest();
nickjillings@1452 307 }
nickjillings@1452 308 else
nickjillings@1452 309 {// code for IE6, IE5
nickjillings@1452 310 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
nickjillings@1452 311 }
nickjillings@1452 312 xmlhttp.open("GET",xmlFileName,false);
nickjillings@1452 313 xmlhttp.send();
nickjillings@1452 314 return xmlhttp.responseXML;
nickjillings@1452 315 }
nickjillings@1452 316
nickjillings@1452 317 // go over all files and compute relevant statistics
nickjillings@1452 318 function loadAllFiles() {
nickjillings@1452 319 // retrieve information from XMLs
nickjillings@1452 320
nickjillings@1452 321 for (fileIndex = 0; fileIndex < xmlFiles.length; fileIndex++) {
nickjillings@1452 322 xmlFileName = xmlFileFolder+"/"+xmlFiles[fileIndex];
nickjillings@1452 323 xml = readXML(xmlFileName);
nickjillings@1452 324 if (xml != null) { // if file exists
nickjillings@1452 325 // append file name to array of file names
nickjillings@1452 326 fileNameArray.push(xmlFiles[fileIndex]);
nickjillings@1452 327
nickjillings@1452 328 // get root of XML file
nickjillings@1452 329 root = xml.getElementsByTagName('browserevaluationresult')[0];
nickjillings@1452 330
nickjillings@1452 331 // get subject ID, add to array if not already there
nickjillings@1452 332 pretest = root.getElementsByTagName('pretest')[0];
nickjillings@1452 333 subjectID = pretest.getElementsByTagName('comment')[0];
nickjillings@1452 334 if (subjectID){
nickjillings@1452 335 if (subjectID.getAttribute('id')!='sessionId') { // warning in console when not available
nickjillings@1452 336 console.log(xmlFiles[fileIndex]+': no SessionID available');
nickjillings@1452 337 }
nickjillings@1452 338 if (subjectArray.indexOf(subjectID.textContent) == -1) { // if not already in array
nickjillings@1452 339 subjectArray.push(subjectID.textContent); // append to array
nickjillings@1452 340 }
nickjillings@1452 341 }
nickjillings@1452 342
nickjillings@1452 343 // go over all audioholders, add to array if not already there
nickjillings@1452 344 audioholderNodes = root.getElementsByTagName('audioholder');
nickjillings@1452 345 // go over audioholderNodes and append audioholder name when not present yet
nickjillings@1452 346 for (audioholderIndex = 0; audioholderIndex < audioholderNodes.length; audioholderIndex++) {
nickjillings@1452 347 audioholderName = audioholderNodes[audioholderIndex].getAttribute('id');
nickjillings@1452 348 if (audioholderArray.indexOf(audioholderName) == -1) { // if not already in array
nickjillings@1452 349 audioholderArray.push(audioholderName); // append to array
nickjillings@1452 350 }
nickjillings@1452 351 // within each audioholder, go over all audioelement IDs, add to array if not already there
nickjillings@1452 352 audioelementNodes = audioholderNodes[audioholderIndex].getElementsByTagName('audioelement');
nickjillings@1452 353 for (audioelementIndex = 0; audioelementIndex < audioelementNodes.length; audioelementIndex++) {
nickjillings@1452 354 audioelementName = audioelementNodes[audioelementIndex].getAttribute('id');
nickjillings@1452 355 if (audioelementArray.indexOf(audioelementName) == -1) { // if not already in array
nickjillings@1452 356 audioelementArray.push(audioelementName); // append to array
nickjillings@1452 357 }
nickjillings@1452 358 }
nickjillings@1452 359 }
nickjillings@1452 360 // count occurrences of each audioholder
nickjillings@1452 361 // ...
nickjillings@1452 362 }
nickjillings@1452 363 else {
nickjillings@1452 364 console.log('XML file '+xmlFileName+' not found.');
nickjillings@1452 365 }
nickjillings@1452 366 }
nickjillings@1452 367
nickjillings@1452 368 // sort alphabetically
nickjillings@1452 369 fileNameArray.sort();
nickjillings@1452 370 subjectArray.sort();
nickjillings@1452 371 audioholderArray.sort();
nickjillings@1452 372 audioelementArray.sort();
nickjillings@1452 373
nickjillings@1452 374 // display all information in HTML
nickjillings@1452 375 // show XML file folder
nickjillings@1452 376 document.getElementById('xmlFileFolder_span').innerHTML = "\""+xmlFileFolder+"/\"";
nickjillings@1452 377 // show number of files
nickjillings@1452 378 document.getElementById('numberOfFiles_span').innerHTML = fileNameArray.length;
nickjillings@1452 379 // show list of subject names
nickjillings@1452 380 document.getElementById('subjectArray_span').innerHTML = subjectArray.toString();
nickjillings@1452 381 // show list of audioholders
nickjillings@1452 382 document.getElementById('audioholderArray_span').innerHTML = audioholderArray.toString();
nickjillings@1452 383 // show list of audioelementes
nickjillings@1452 384 document.getElementById('audioelementArray_span').innerHTML = audioelementArray.toString();
nickjillings@1452 385 }
nickjillings@1452 386
nickjillings@1452 387 function printSurveyData() {
nickjillings@1452 388 // print some fields from the survey for different people
nickjillings@1452 389
nickjillings@1452 390 // go over all XML files
nickjillings@1452 391 for (fileIndex = 0; fileIndex < xmlFiles.length; fileIndex++) {
nickjillings@1452 392 xmlFileName = xmlFileFolder+"/"+xmlFiles[fileIndex];
nickjillings@1452 393 xml = readXML(xmlFileName);
nickjillings@1452 394 // make a div
nickjillings@1452 395 var div = document.createElement('div');
nickjillings@1452 396 document.body.appendChild(div);
nickjillings@1452 397 div.id = 'div_survey_'+xmlFileName;
nickjillings@1452 398 div.style.width = '1100px';
nickjillings@1452 399 //div.style.height = '350px';
nickjillings@1452 400
nickjillings@1452 401 // title for that div (subject id)
nickjillings@1452 402 document.getElementById('div_survey_'+xmlFileName).innerHTML = '<h2>'+xmlFileName+'</h2>';
nickjillings@1452 403
nickjillings@1452 404 // which songs did they do
nickjillings@1452 405 if (xml != null) { // if file exists
nickjillings@1452 406 // get root of XML file
nickjillings@1452 407 root = xml.getElementsByTagName('browserevaluationresult')[0];
nickjillings@1452 408 // go over all audioholders
nickjillings@1452 409 // document.getElementById('div_survey_'+xmlFileName).innerHTML += '<strong>Audioholders: </strong>';
nickjillings@1452 410 // audioholderNodes = root.getElementsByTagName('audioholder');
nickjillings@1452 411 // for (audioholderIndex = 0; audioholderIndex < audioholderNodes.length-1; audioholderIndex++) {
nickjillings@1452 412 // document.getElementById('div_survey_'+xmlFileName).innerHTML += audioholderNodes[audioholderIndex].getAttribute('id')+', ';
nickjillings@1452 413 // }
nickjillings@1452 414 // document.getElementById('div_survey_'+xmlFileName).innerHTML += audioholderNodes[audioholderNodes.length-1].getAttribute('id');
nickjillings@1452 415
nickjillings@1452 416 // survey responses (each if available)
nickjillings@1452 417 // get posttest node for total test
nickjillings@1452 418 childNodes = root.childNodes;
nickjillings@1452 419 posttestnode = null;
nickjillings@1452 420 for (idx = 0; idx < childNodes.length; idx++){
nickjillings@1452 421 if (childNodes[childNodes.length-idx-1].tagName == 'posttest') {
nickjillings@1452 422 posttestnode = childNodes[childNodes.length-idx-1];
nickjillings@1452 423 break;
nickjillings@1452 424 }
nickjillings@1452 425 }
nickjillings@1452 426
nickjillings@1452 427 // mix experience
nickjillings@1452 428 if (posttestnode) {
nickjillings@1452 429 posttestcomments = posttestnode.getElementsByTagName('comment');
nickjillings@1452 430 for (idx=0; idx < posttestcomments.length; idx++){
nickjillings@1452 431 commentsToPrint = ['generalExperience', 'interfaceExperience'];
nickjillings@1452 432 idAttribute = posttestcomments[idx].getAttribute('id');
nickjillings@1452 433 if (commentsToPrint.indexOf(idAttribute) >= 0) { // if exists?
nickjillings@1452 434 document.getElementById('div_survey_'+xmlFileName).innerHTML += '<br><strong>'+idAttribute+': </strong>'+posttestcomments[idx].textContent;
nickjillings@1452 435 }
nickjillings@1452 436 }
nickjillings@1452 437 }
nickjillings@1452 438 }
nickjillings@1452 439 }
nickjillings@1452 440 }
nickjillings@1452 441
nickjillings@1452 442 function makePlots() { //TODO: split into different functions
nickjillings@1452 443 // TEMPORARY
nickjillings@1452 444 makeTimeline(xmlFileFolder+"/"+xmlFiles[7]);
nickjillings@1452 445
nickjillings@1452 446 // create value array
nickjillings@1452 447 var ratings = []; // 3D matrix of ratings (audioholder, audioelement, subject)
nickjillings@1452 448 for (audioholderIndex = 0; audioholderIndex < audioholderArray.length; audioholderIndex++) {
nickjillings@1452 449 ratings.push([]);
nickjillings@1452 450 for (audioelementIndex = 0; audioelementIndex < audioelementArray.length; audioelementIndex++) {
nickjillings@1452 451 ratings[audioholderIndex].push([]);
nickjillings@1452 452 }
nickjillings@1452 453 }
nickjillings@1452 454
nickjillings@1452 455 // go over all XML files
nickjillings@1452 456 for (fileIndex = 0; fileIndex < xmlFiles.length; fileIndex++) {
nickjillings@1452 457 xmlFileName = xmlFileFolder+"/"+xmlFiles[fileIndex];
nickjillings@1452 458 xml = readXML(xmlFileName);
nickjillings@1452 459 if (xml != null) { // if file exists
nickjillings@1452 460 // get root of XML file
nickjillings@1452 461 root = xml.getElementsByTagName('browserevaluationresult')[0];
nickjillings@1452 462 // go over all audioholders
nickjillings@1452 463 audioholderNodes = root.getElementsByTagName('audioholder');
nickjillings@1452 464 for (audioholderIndex = 0; audioholderIndex < audioholderNodes.length; audioholderIndex++) {
nickjillings@1452 465 audioholderName = audioholderNodes[audioholderIndex].getAttribute('id');
nickjillings@1452 466 audioelementNodes = audioholderNodes[audioholderIndex].getElementsByTagName('audioelement');
nickjillings@1452 467 // go over all audioelements
nickjillings@1452 468 for (audioelementIndex = 0; audioelementIndex < audioelementNodes.length; audioelementIndex++) {
nickjillings@1452 469 audioelementName = audioelementNodes[audioelementIndex].getAttribute('id');
nickjillings@1452 470 // get value
nickjillings@1452 471 var value = audioelementNodes[audioelementIndex].getElementsByTagName("value")[0].textContent;
nickjillings@1452 472 if (value) { // if not empty, null, undefined...
nickjillings@1452 473 ratingValue = parseFloat(value);
nickjillings@1452 474 // add to matrix at proper position
nickjillings@1452 475 aHidx = audioholderArray.indexOf(audioholderName);
nickjillings@1452 476 aEidx = audioelementArray.indexOf(audioelementName);
nickjillings@1452 477 ratings[aHidx][aEidx].push(ratingValue);
nickjillings@1452 478 }
nickjillings@1452 479 }
nickjillings@1452 480 }
nickjillings@1452 481
nickjillings@1452 482 // go over all audioholders
nickjillings@1452 483
nickjillings@1452 484 // go over all audioelements within audioholder, see if present in idMatrix, add if not
nickjillings@1452 485 // add corresponding rating to 'ratings', at position corresponding with position in idMatrix
nickjillings@1452 486 }
nickjillings@1452 487 }
nickjillings@1452 488
nickjillings@1452 489 for (audioholderIndex = 0; audioholderIndex < audioholderArray.length; audioholderIndex++) {
nickjillings@1452 490 audioholderName = audioholderArray[audioholderIndex]; // for this song
nickjillings@1452 491 tickArray = []
nickjillings@1452 492
nickjillings@1452 493 raw_data = [['SubjectID', 'Rating']];
nickjillings@1452 494 audioElIdx = 0;
nickjillings@1452 495 for (audioelementIndex = 0; audioelementIndex<ratings[audioholderIndex].length; audioelementIndex++){
nickjillings@1452 496 if (ratings[audioholderIndex][audioelementIndex].length>0) {
nickjillings@1452 497 audioElIdx++; // increase if not empty
nickjillings@1452 498 // make tick label
nickjillings@1452 499 tickArray.push({v:audioElIdx, f: audioelementArray[audioelementIndex]});
nickjillings@1452 500 }
nickjillings@1452 501 for (subject = 0; subject<ratings[audioholderIndex][audioelementIndex].length; subject++){
nickjillings@1452 502 // add subject-value pair for each subject
nickjillings@1452 503 raw_data.push([audioElIdx, ratings[audioholderIndex][audioelementIndex][subject]]);
nickjillings@1452 504 }
nickjillings@1452 505 }
nickjillings@1452 506
nickjillings@1452 507 // create plot (one per song)
nickjillings@1452 508 var data = google.visualization.arrayToDataTable(raw_data);
nickjillings@1452 509
nickjillings@1452 510 var options = {
nickjillings@1452 511 title: audioholderName,
nickjillings@1452 512 hAxis: {title: 'audioelement ID', minValue: 0, maxValue: audioElIdx+1,
nickjillings@1452 513 ticks: tickArray},
nickjillings@1452 514 vAxis: {title: 'Rating', minValue: 0, maxValue: 1},
nickjillings@1452 515 seriesType: 'scatter',
nickjillings@1452 516 legend: 'none'
nickjillings@1452 517 };
nickjillings@1452 518 var div = document.createElement('div');
nickjillings@1452 519 document.body.appendChild(div);
nickjillings@1452 520 div.id = 'div_'+audioholderName;
nickjillings@1452 521 div.style.width = '1100px';
nickjillings@1452 522 div.style.height = '350px';
nickjillings@1452 523 var chart = new google.visualization.ComboChart(document.getElementById('div_'+audioholderName));
nickjillings@1452 524 chart.draw(data, options);
nickjillings@1452 525
nickjillings@1452 526 // box plots
nickjillings@1452 527 var div = document.createElement('div');
nickjillings@1452 528 document.body.appendChild(div);
nickjillings@1452 529 div.id = 'div_box_'+audioholderName;
nickjillings@1452 530 div.style.width = '1100px';
nickjillings@1452 531 div.style.height = '350px';
nickjillings@1452 532 // Get median, percentiles, maximum and minimum; outliers.
nickjillings@1452 533 pctl25 = [];
nickjillings@1452 534 pctl75 = [];
nickjillings@1452 535 med = [];
nickjillings@1452 536 min = [];
nickjillings@1452 537 max = [];
nickjillings@1452 538 outlierArray = [];
nickjillings@1452 539 max_n_outliers = 0; // maximum number of outliers for one audioelement
nickjillings@1452 540 for (audioelementIndex = 0; audioelementIndex<ratings[audioholderIndex].length; audioelementIndex++){
nickjillings@1452 541 med.push(median(ratings[audioholderIndex][audioelementIndex])); // median
nickjillings@1452 542 pctl25.push(percentile(ratings[audioholderIndex][audioelementIndex], 25)); // 25th percentile
nickjillings@1452 543 pctl75.push(percentile(ratings[audioholderIndex][audioelementIndex], 75)); // 75th percentile
nickjillings@1452 544 IQR = pctl75[pctl75.length-1]-pctl25[pctl25.length-1];
nickjillings@1452 545 // outliers: range of values which is above pctl75+1.5*IQR or below pctl25-1.5*IQR
nickjillings@1452 546 outliers = [];
nickjillings@1452 547 rest = [];
nickjillings@1452 548 for (idx = 0; idx<ratings[audioholderIndex][audioelementIndex].length; idx++){
nickjillings@1452 549 if (ratings[audioholderIndex][audioelementIndex][idx] > pctl75[pctl75.length-1]+1.5*IQR ||
nickjillings@1452 550 ratings[audioholderIndex][audioelementIndex][idx] < pctl25[pctl25.length-1]-1.5*IQR){
nickjillings@1452 551 outliers.push(ratings[audioholderIndex][audioelementIndex][idx]);
nickjillings@1452 552 }
nickjillings@1452 553 else {
nickjillings@1452 554 rest.push(ratings[audioholderIndex][audioelementIndex][idx]);
nickjillings@1452 555 }
nickjillings@1452 556 }
nickjillings@1452 557 outlierArray.push(outliers);
nickjillings@1452 558 max_n_outliers = Math.max(max_n_outliers, outliers.length); // update max mber
nickjillings@1452 559 // max: maximum value which is not outlier
nickjillings@1452 560 max.push(Math.max.apply(null, rest));
nickjillings@1452 561 // min: minimum value which is not outlier
nickjillings@1452 562 min.push(Math.min.apply(null, rest));
nickjillings@1452 563 }
nickjillings@1452 564
nickjillings@1452 565 // Build data array
nickjillings@1452 566 boxplot_data = [['ID', 'Span', '', '', '', 'Median']];
nickjillings@1452 567 for (idx = 0; idx < max_n_outliers; idx++) {
nickjillings@1452 568 boxplot_data[0].push('Outlier');
nickjillings@1452 569 }
nickjillings@1452 570 for (audioelementIndex = 0; audioelementIndex<ratings[audioholderIndex].length; audioelementIndex++){
nickjillings@1452 571 if (ratings[audioholderIndex][audioelementIndex].length>0) { // if rating array not empty for this audioelement
nickjillings@1452 572 data_array = [
nickjillings@1452 573 audioelementArray[audioelementIndex], // name
nickjillings@1452 574 min[audioelementIndex], // minimum
nickjillings@1452 575 pctl75[audioelementIndex],
nickjillings@1452 576 pctl25[audioelementIndex],
nickjillings@1452 577 max[audioelementIndex], // maximum
nickjillings@1452 578 med[audioelementIndex]
nickjillings@1452 579 ];
nickjillings@1452 580 for (idx = 0; idx < max_n_outliers; idx++) {
nickjillings@1452 581 if (idx<outlierArray[audioelementIndex].length){
nickjillings@1452 582 data_array.push(outlierArray[audioelementIndex][idx]);
nickjillings@1452 583 }
nickjillings@1452 584 else {
nickjillings@1452 585 data_array.push(null);
nickjillings@1452 586 }
nickjillings@1452 587 }
nickjillings@1452 588 boxplot_data.push(data_array);
nickjillings@1452 589 }
nickjillings@1452 590 }
nickjillings@1452 591
nickjillings@1452 592 // Create and populate the data table.
nickjillings@1452 593 var data = google.visualization.arrayToDataTable(boxplot_data);
nickjillings@1452 594 // Create and draw the visualization.
nickjillings@1452 595 var ac = new google.visualization.ComboChart(document.getElementById('div_box_'+audioholderName));
nickjillings@1452 596 ac.draw(data, {
nickjillings@1452 597 title : audioholderName,
nickjillings@1452 598 //width: 600,
nickjillings@1452 599 //height: 400,
nickjillings@1452 600 vAxis: {title: "Rating"},
nickjillings@1452 601 hAxis: {title: "audioelement ID"},
nickjillings@1452 602 seriesType: "line",
nickjillings@1452 603 pointSize: 5,
nickjillings@1452 604 lineWidth: 0,
nickjillings@1452 605 colors: ['black'],
nickjillings@1452 606 series: { 0: {type: "candlesticks", color: 'blue'}, // box plot shape
nickjillings@1452 607 1: {type: "line", pointSize: 10, lineWidth: 0, color: 'red' } }, // median
nickjillings@1452 608 legend: 'none'
nickjillings@1452 609 });
nickjillings@1452 610 }
nickjillings@1452 611 }
nickjillings@1452 612
nickjillings@1452 613 function makeTimeline(xmlFileName){ // WIP
nickjillings@1452 614 // Based on the XML file name, take time data and plot playback and marker movements
nickjillings@1452 615
nickjillings@1452 616 // read XML file and check if exists
nickjillings@1452 617 xml = readXML(xmlFileName);
nickjillings@1452 618 if (!xml) { // if file does not exist
nickjillings@1452 619 console.log('XML file '+xml+'does not exist. ('+xmlFileName+')')
nickjillings@1452 620 return; // do nothing; exit function
nickjillings@1452 621 }
nickjillings@1452 622 // get root of XML file
nickjillings@1452 623 root = xml.getElementsByTagName('browserevaluationresult')[0];
nickjillings@1452 624
nickjillings@1452 625 audioholder_time = 0;
nickjillings@1452 626 previous_audioholder_time = 0; // time spent before current audioholder
nickjillings@1452 627 time_offset = 0; // test starts at zero
nickjillings@1452 628
nickjillings@1452 629 // go over all audioholders
nickjillings@1452 630 audioholderNodes = root.getElementsByTagName('audioholder');
nickjillings@1452 631 for (audioholderIndex = 0; audioholderIndex < audioholderNodes.length; audioholderIndex++) {
nickjillings@1452 632 audioholderName = audioholderNodes[audioholderIndex].getAttribute('id');
nickjillings@1452 633 if (!audioholderName) {
nickjillings@1452 634 console.log('audioholder name is empty; go to next one. ('+xmlFileName+')');
nickjillings@1452 635 break;
nickjillings@1452 636 }
nickjillings@1452 637
nickjillings@1452 638 // subtract total audioholder length from subsequent audioholder event times
nickjillings@1452 639 audioholder_children = audioholderNodes[audioholderIndex].childNodes;
nickjillings@1452 640 foundIt = false;
nickjillings@1452 641 console.log(audioholder_children[2].getElementsByTagName("metricResult")) // not working!
nickjillings@1452 642 for (idx = 0; idx<audioholder_children.length; idx++) { // go over children
nickjillings@1452 643
nickjillings@1452 644 if (audioholder_children[idx].getElementsByTagName('metricResult').length) {
nickjillings@1452 645 console.log(audioholder_children[idx].getElementsByTagName('metricResult')[0]);
nickjillings@1452 646 if (audioholder_children[idx].getElementsByTagName('metricResult')[0].getAttribute('id') == "testTime"){
nickjillings@1452 647 audioholder_time = parseFloat(audioholder_children[idx].getElementsByTagName('metricResult')[0].textContent);
nickjillings@1452 648 console.log(audioholder_time);
nickjillings@1452 649 foundIt = true;
nickjillings@1452 650 }
nickjillings@1452 651 }
nickjillings@1452 652 }
nickjillings@1452 653 if (!foundIt) {
nickjillings@1452 654 console.log("Skipping audioholder without total time specified from "+xmlFileName+"."); // always hitting this
nickjillings@1452 655 break;
nickjillings@1452 656 }
nickjillings@1452 657
nickjillings@1452 658 audioelementNodes = audioholderNodes[audioholderIndex].getElementsByTagName('audioelement');
nickjillings@1452 659
nickjillings@1452 660 // make div
nickjillings@1452 661
nickjillings@1452 662 // draw chart
nickjillings@1452 663
nickjillings@1452 664 // legend with audioelement names
nickjillings@1452 665 }
nickjillings@1452 666 }
nickjillings@1452 667
nickjillings@1452 668 </script>
nickjillings@1452 669
nickjillings@1452 670
nickjillings@1452 671
nickjillings@1452 672 <style>
nickjillings@1452 673 div {
nickjillings@1452 674 padding: 2px;
nickjillings@1452 675 margin-top: 2px;
nickjillings@1452 676 margin-bottom: 2px;
nickjillings@1452 677 }
nickjillings@1452 678 div.head{
nickjillings@1452 679 margin-left: 10px;
nickjillings@1452 680 border: black;
nickjillings@1452 681 border-width: 2px;
nickjillings@1452 682 border-style: solid;
nickjillings@1452 683 }
nickjillings@1452 684 div.attrib{
nickjillings@1452 685 margin-left:25px;
nickjillings@1452 686 border: black;
nickjillings@1452 687 border-width: 2px;
nickjillings@1452 688 border-style: dashed;
nickjillings@1452 689 margin-bottom: 10px;
nickjillings@1452 690 }
nickjillings@1452 691 div#headerMatter{
nickjillings@1452 692 background-color: #FFFFCC;
nickjillings@1452 693 }
nickjillings@1452 694 div#currentStatement{
nickjillings@1452 695 font-size:3.0em;
nickjillings@1452 696 font-weight: bold;
nickjillings@1452 697
nickjillings@1452 698 }
nickjillings@1452 699 div#debugDisplay {
nickjillings@1452 700 color: #CCCCCC;
nickjillings@1452 701 font-size:0.3em;
nickjillings@1452 702 }
nickjillings@1452 703 span#scoreDisplay {
nickjillings@1452 704 font-weight: bold;
nickjillings@1452 705 }
nickjillings@1452 706 div#wrapper {
nickjillings@1452 707 width: 780px;
nickjillings@1452 708 border: 1px solid black;
nickjillings@1452 709 overflow: hidden; /* add this to contain floated children */
nickjillings@1452 710 }
nickjillings@1452 711 div#instrumentSection {
nickjillings@1452 712 width: 250px;
nickjillings@1452 713 border: 1px solid red;
nickjillings@1452 714 display: inline-block;
nickjillings@1452 715 }
nickjillings@1452 716 div#featureSection {
nickjillings@1452 717 width: 250px;
nickjillings@1452 718 border: 1px solid green;
nickjillings@1452 719 display: inline-block;
nickjillings@1452 720 }
nickjillings@1452 721 div#valenceSection {
nickjillings@1452 722 width: 250px;
nickjillings@1452 723 border: 1px solid blue;
nickjillings@1452 724 display: inline-block;
nickjillings@1452 725 }
nickjillings@1452 726 button#previousComment{
nickjillings@1452 727 width: 120px;
nickjillings@1452 728 height: 150px;
nickjillings@1452 729 font-size:1.5em;
nickjillings@1452 730 }
nickjillings@1452 731 button#nextComment{
nickjillings@1452 732 width: 666px;
nickjillings@1452 733 height: 150px;
nickjillings@1452 734 font-size:1.5em;
nickjillings@1452 735 }
nickjillings@1452 736 ul
nickjillings@1452 737 {
nickjillings@1452 738 list-style-type: none; /* no bullet points */
nickjillings@1452 739 margin-left: -20px; /* less indent */
nickjillings@1452 740 margin-top: 0px;
nickjillings@1452 741 margin-bottom: 5px;
nickjillings@1452 742 }
nickjillings@1452 743 </style>
nickjillings@1452 744
nickjillings@1452 745 </head>
nickjillings@1452 746
nickjillings@1452 747 <body>
nickjillings@1452 748 <h1>Subjective evaluation results</h1>
nickjillings@1452 749
nickjillings@1452 750 <div id="debugDisplay">
nickjillings@1452 751 XML file folder: <span id="xmlFileFolder_span"></span>
nickjillings@1452 752 </div>
nickjillings@1452 753
nickjillings@1452 754 <div id="headerMatter">
nickjillings@1452 755 <div>
nickjillings@1452 756 <strong>Result XML files:</strong> <span id="numberOfFiles_span"></span>
nickjillings@1452 757 </div>
nickjillings@1452 758 <div>
nickjillings@1452 759 <strong>Audioholders in dataset:</strong> <span id="audioholderArray_span"></span>
nickjillings@1452 760 </div>
nickjillings@1452 761 <div>
nickjillings@1452 762 <strong>Subjects in dataset:</strong> <span id="subjectArray_span"></span>
nickjillings@1452 763 </div>
nickjillings@1452 764 <div>
nickjillings@1452 765 <strong>Audioelements in dataset:</strong> <span id="audioelementArray_span"></span>
nickjillings@1452 766 </div>
nickjillings@1452 767 <br>
nickjillings@1452 768 </div>
nickjillings@1452 769 <br>
nickjillings@1452 770
nickjillings@1452 771 <!-- Show time elapsed
nickjillings@1452 772 The last annotation took <strong><span id="timeDisplay">(N/A)</span></strong> seconds.
nickjillings@1452 773 <br>-->
nickjillings@1452 774
nickjillings@1452 775 </body>
nickjillings@1452 776 </html>