Download RodasRivera2014_PartII
Transcript
Juan Luis Rodas Rivera
Technical Report
</table>
<span class="label label-primary">Statistics</span>
<table class='table'>
<tbody>
<tr>
<?php
// Round values for displaying
$td8 = round($mu, 4); $td9 = round($s2, 4); $td10 =
round($VMR, 4); $td11 = round($chi2, 4);
echo "<td class='text-center'><var>µ</var> =
{$td8}</td>";
echo "<td class='text-center'><var>s</var><sup>2</sup> =
{$td9}</td>";
echo "<td class='text-center'><var>VMR</var> =
{$td10}</td>";
echo "<td class='text-center'><var>x</var><sup>2</sup> =
{$td11}</td>";
?>
</tr>
</tbody>
</table>
<?php
// If there are values on the lookup table for this number of
degrees of freedom then display them
if (array_key_exists($total - 1, $lookup)) {
?>
<span class="label label-primary">Critical values</span>
<table class='table'>
<thead>
<tr><th class='text-right'>0.995</th><th class='textright'>0.975</th><th class='text-right'>0.20</th><th class='textright'>0.10</th><th class='text-right'>0.05</th><th class='textright'>0.025</th><th class='text-right'>0.02</th><th class='textright'>0.01</th><th class='text-right'>0.005</th><th class='textright'>0.002</th><th class='text-right'>0.001</th></tr>
</thead>
<tbody>
<tr>
<?php
for($i = 0; $i < 11; $i++) {
echo "<td class='text-right'>{$lookup[$total 1][$i]}</td>";
}
?>
</tr>
</tbody>
</table>
<?php
}
// If there are no photos on this study area and time unit display a
message accordingly
} else {
?>
<div class='panel-body'>
<h4><span class="label label-warning">There are no photos on this
time unit.</span></h4>
</div>
<?php
}
die();
107