public String printHTML(String html) {
        html += "<b>Statistics</b><br><table>";
        html += "<tr><td></td>";
        if(mean != null){
            html += "<th>Mean</th>";
        }
        if(sd != null){
            html += "<th>Std.Dev</th>";
        }
        if(percentiles != null){
            for(int i=0;i<values.length;i++){
                html += "<th align='right'>" + values[i] + "</th>";
            }
        }
        html += "</tr>";
        for(int i=0;i<names.length;i++){
            html += "<tr>";
            html += "<th>" + names[i] + "</th>";
            if(mean != null){
                html += "<td>" + decimalFormat.format(mean[i]) + "</td>";
            }
            if(sd != null){
                html += "<td>" + decimalFormat.format(sd[i]) + "</td>";
            }
            if(percentiles != null){
                for(int j=0;j<values.length;j++){
                    html += "<td class=\"alt\">" + decimalFormat.format(percentiles[i][j]) + "</td>";
                }
            }
            html += "</tr>";
        }
        html += "</table>";

        return html;
    }