double base = Math.abs(x1 - x2);
double havg = 0.5 * (y1 + y2);
return base * havg;
}
public void generateHTML(String title, StringBuilder sb) {
<BUG>sb.append("<h4>Validation on: " + dataKey + "</h4>");
sb.append("<table class='table table-striped table-bordered table-condensed'>");</BUG>
final long null_dof = nobs-1, res_dof = Math.max(0,nobs-_rank-1);
sb.append("<tr><th>Degrees of freedom:</th><td>" + null_dof + " total (i.e. Null); " + res_dof + " Residual</td></tr>");
sb.append("<tr><th>Null Deviance</th><td>" + null_deviance + "</td></tr>");

double base = Math.abs(x1 - x2);
double havg = 0.5 * (y1 + y2);
return base * havg;
}
public void generateHTML(String title, StringBuilder sb) {
sb.append("<h4>" + title + "</h4>");
sb.append("<table class='table table-striped table-bordered table-condensed'>");
final long null_dof = nobs-1, res_dof = Math.max(0,nobs-_rank-1);
sb.append("<tr><th>Degrees of freedom:</th><td>" + null_dof + " total (i.e. Null); " + res_dof + " Residual</td></tr>");
sb.append("<tr><th>Null Deviance</th><td>" + null_deviance + "</td></tr>");
