if (Utils.eq(pairedStats.yStats.stdDev, Double.NaN)) {
if (Double.isNaN(pairedStats.yStats.stdDev)) {
  private String multiResultsetFullLatex(int baseResultset,				     int comparisonColumn,				     int maxWidthMean,				     int maxWidthStdDev) {    StringBuffer result = new StringBuffer(1000);    int numcols = getNumResultsets() * 2;    if (m_ShowStdDevs) {      numcols += getNumResultsets();    }    result.append("\\begin{table}[thb]\n\\caption{\\label{labelname}"		  +"Table Caption}\n");    if (!m_ShowStdDevs) {      result.append("\\footnotesize\n");    } else {      result.append("\\scriptsize\n");    }    // output the column alignment characters    // one for the dataset name and one for the comparison column    if (!m_ShowStdDevs) {      result.append("{\\centering \\begin{tabular}{ll");    } else {      // dataset, mean, std dev      result.append("{\\centering \\begin{tabular}{lr@{\\hspace{0cm}}l");    }    for (int j = 0; j < getNumResultsets(); j++) {      if (j != baseResultset) {	if (!m_ShowStdDevs) {	  result.append("l@{\\hspace{0.1cm}}l");	} else {	  result.append("r@{\\hspace{0cm}}l@{\\hspace{0cm}}r");	}      }    }    result.append("}\n\\\\\n\\hline\n");    if (!m_ShowStdDevs) {      result.append("Data Set & ("+(baseResultset+1)+")");    } else {      result.append("Data Set & \\multicolumn{2}{c}{("+(baseResultset+1)+")}");    }    // now do the column names (numbers)    for (int j = 0; j < getNumResultsets(); j++) {      if (j != baseResultset) {	if (!m_ShowStdDevs) {	  result.append("& (" + (j + 1) + ") & ");	} else {	  result.append("& \\multicolumn{3}{c}{(" + (j + 1) + ")} ");	}      }    }    result.append("\\\\\n\\hline\n");        int datasetLength = 25;    int resultsetLength = maxWidthMean + 7;    if (m_ShowStdDevs) {      resultsetLength += (maxWidthStdDev + 5);    }    for (int i = 0; i < getNumDatasets(); i++) {      // Print the name of the dataset      String datasetName = 	templateString(m_DatasetSpecifiers.specifier(i)).replace('_','-');      try {	PairedStats pairedStats = 	  calculateStatistics(m_DatasetSpecifiers.specifier(i), 			      baseResultset, baseResultset,			      comparisonColumn);	datasetName = Utils.padRight(datasetName, datasetLength);	result.append(datasetName);		if (!m_ShowStdDevs) {	  result.append("& "+Utils.doubleToString(pairedStats.xStats.mean,			       resultsetLength - 2, 2));	} else {	  result.append("& "+Utils.doubleToString(pairedStats.xStats.mean,					     (maxWidthMean+5), 2)+"$\\pm$");	  if (Utils.eq(pairedStats.xStats.stdDev, Double.NaN)) {	    result.append("&"+Utils.doubleToString(0.0,						  (maxWidthStdDev+3),2)+" ");	  } else {	    result.append("&"+Utils.doubleToString(pairedStats.xStats.stdDev,						   (maxWidthStdDev+3),2)+" ");	  }	}	// Iterate over the resultsets	for (int j = 0; j < getNumResultsets(); j++) {	  if (j != baseResultset) {	    try {	      pairedStats = 		calculateStatistics(m_DatasetSpecifiers.specifier(i), 				    baseResultset, j, comparisonColumn);	      String sigString = "";	      if (pairedStats.differencesSignificance < 0) {		sigString = "$\\circ$";	      } else if (pairedStats.differencesSignificance > 0) {		sigString = "$\\bullet$";	      } 	      if (!m_ShowStdDevs) {		result.append(" & "+Utils.doubleToString(pairedStats.yStats.mean,						   resultsetLength - 2,						   2)).append(" & "+sigString);	      } else {		result.append(" & "			      +Utils.doubleToString(pairedStats.yStats.mean,						   (maxWidthMean+5),						   2)+"$\\pm$");		if (Utils.eq(pairedStats.yStats.stdDev, Double.NaN)) {		  result.append("&"+Utils.doubleToString(0.0, 				(maxWidthStdDev+3),2)+" ");		} else {		  result.append("&"+Utils.doubleToString(pairedStats.				  yStats.stdDev, (maxWidthStdDev+3),2)+" ");		}		result.append(" & ").append(sigString);	      }	    } catch (Exception ex) {	      ex.printStackTrace();	      result.append(Utils.padLeft("", resultsetLength + 1));	    }	  }	}	result.append("\\\\\n");      } catch (Exception ex) {	ex.printStackTrace();      }    }    result.append("\\hline\n\\multicolumn{"+numcols+"}{c}{$\\circ$, $\\bullet$"		  +" statistically significant improvement or degradation}"		  +"\\\\\n\\end{tabular} ");    if (!m_ShowStdDevs) {      result.append("\\footnotesize ");      } else {	result.append("\\scriptsize ");      }        result.append("\\par}\n\\end{table}"		  +"\n");    System.out.println(result.toString()+"\n\n");    return result.toString();  }