Esempio n. 1
0
 /** @return String representation of the combined statistics */
 public String getDispersionString() {
   StringBuffer buf = new StringBuffer();
   NumberFormat fr = ClusFormat.SIX_AFTER_DOT;
   buf.append("[");
   buf.append(fr.format(dispersionCalc()));
   buf.append(" : ");
   buf.append(fr.format(dispersionNum(IN_OUTPUT)));
   buf.append(" , ");
   buf.append(fr.format(dispersionNom(IN_OUTPUT)));
   buf.append("]");
   return buf.toString();
 }
Esempio n. 2
0
 public String getString(StatisticPrintInfo info) {
   StringBuffer buf = new StringBuffer();
   buf.append("[");
   buf.append(m_ClassStat.getString(info));
   buf.append(" | ");
   buf.append(m_RegStat.getString(info));
   buf.append("]");
   return buf.toString();
 }
Esempio n. 3
0
 public String getPredictWriterString() {
   StringBuffer buf = new StringBuffer();
   buf.append(m_ClassStat.getPredictWriterString());
   if (buf.length() != 0) buf.append(",");
   buf.append(m_RegStat.getPredictWriterString());
   return buf.toString();
 }
 public String getString(StatisticPrintInfo info) {
   NumberFormat fr = ClusFormat.SIX_AFTER_DOT;
   StringBuffer buf = new StringBuffer();
   buf.append("[");
   for (int i = 0; i < m_NbAttrs; i++) {
     if (i != 0) buf.append(",");
     buf.append(fr.format(getMean(i)));
   }
   buf.append("]");
   if (info.SHOW_EXAMPLE_COUNT) {
     buf.append(": ");
     buf.append(fr.format(m_SumWeight));
   }
   return buf.toString();
 }