OLD | NEW |
1 (function(){ | 1 (function(){ |
2 | 2 |
3 // Populated from: http://www.medcalc.be/manual/t-distribution.php | 3 // Populated from: http://www.medcalc.be/manual/t-distribution.php |
4 // 95% confidence for N - 1 = 4 | 4 // 95% confidence for N - 1 = 4 |
5 var tDistribution = 2.776; | 5 var tDistribution = 2.776; |
6 | 6 |
7 // The number of individual test iterations to do | 7 // The number of individual test iterations to do |
8 var numTests = 5; | 8 var numTests = 5; |
9 | 9 |
10 // The type of run that we're doing (options are "runs/s" or "ms") | 10 // The type of run that we're doing (options are "runs/s" or "ms") |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 success: function(id){ | 394 success: function(id){ |
395 var url = window.locatio
n.href.replace(/\?.*$/, "") + "?id=" + id; | 395 var url = window.locatio
n.href.replace(/\?.*$/, "") + "?id=" + id; |
396 div.html("Results saved.
You can access them at a later time at the following URL:<br/><strong><a href='
" + url + "'>" + url + "</a></strong></div>"); | 396 div.html("Results saved.
You can access them at a later time at the following URL:<br/><strong><a href='
" + url + "'>" + url + "</a></strong></div>"); |
397 } | 397 } |
398 }); | 398 }); |
399 } else if (post_json) { | 399 } else if (post_json) { |
400 jQuery.ajax({ | 400 jQuery.ajax({ |
401 type: "POST", | 401 type: "POST", |
402 url: "store.php", | 402 url: "store.php", |
403 data: "data=" + encodeURICompone
nt(JSON.stringify(window.automation.GetResults())) | 403 data: "data=" + encodeURICompone
nt(JSON.stringify(window.automation.GetResults())) |
404 » » » » » }); | 404 » » » » » }); |
405 } | 405 } |
406 else { | 406 else { |
407 window.automation.SetDone(); | 407 window.automation.SetDone(); |
408 } | 408 } |
409 } | 409 } |
410 } | 410 } |
411 } | 411 } |
412 | 412 |
413 function updateTimebar(){ | 413 function updateTimebar(){ |
414 $("#timebar").html("<span><strong>" + (runStyle === "runs/s" ? M
ath.pow(Math.E, maxTotal / maxTotalNum) : maxTotal).toFixed(2) + "</strong>" + r
unStyle + " (Total)</span>"); | 414 $("#timebar").html("<span><strong>" + (runStyle === "runs/s" ? M
ath.pow(Math.E, maxTotal / maxTotalNum) : maxTotal).toFixed(2) + "</strong>" + r
unStyle + " (Total)</span>"); |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
838 var means = aggregated[name]; | 838 var means = aggregated[name]; |
839 var sum = 0; | 839 var sum = 0; |
840 for (var i = 0; i < means.length; i++) sum += me
ans[i]; | 840 for (var i = 0; i < means.length; i++) sum += me
ans[i]; |
841 results[name] = Math.pow(Math.E, sum/means.lengt
h).toString(); | 841 results[name] = Math.pow(Math.E, sum/means.lengt
h).toString(); |
842 } | 842 } |
843 | 843 |
844 return results; | 844 return results; |
845 } | 845 } |
846 } | 846 } |
847 })(); | 847 })(); |
OLD | NEW |