@Override public String generateStart(){
  StringBuffer result;
  int i;
  result=new StringBuffer();
  result.append("%\n");
  result.append("% centroids:\n");
  for (i=0; i < getNumCentroids(); i++) {
    result.append("% " + i + ".: "+ Utils.arrayToString(m_centroids[i])+ "\n");
  }
  result.append("%\n");
  result.append("% centroidClasses: " + Utils.arrayToString(m_centroidClasses) + "\n");
  result.append("%\n");
  result.append("% centroidWeights: " + Utils.arrayToString(m_centroidWeights) + "\n");
  result.append("%\n");
  result.append("% centroidStdDevs: " + Utils.arrayToString(m_centroidStdDevs) + "\n");
  result.append("%\n");
  return result.toString();
}

@ Override public String generateStart ( ) { StringBuffer result ; int i ; result = new StringBuffer ( ) ; result . append ( "%\n" ) ; result . append ( "% centroids:\n" ) ; for ( i = 0 ; i < getNumCentroids ( ) ; i ++ ) { result . append ( "% " + i + ".: " + Utils . arrayToString ( m_centroids [ i ] ) + "\n" ) ; } result . append ( "%\n" ) ; result . append ( "% centroidClasses: " + Utils . arrayToString ( m_centroidClasses ) + "\n" ) ; result . append ( "%\n" ) ; result . append ( "% centroidWeights: " + Utils . arrayToString ( m_centroidWeights ) + "\n" ) ; result . append ( "%\n" ) ; result . append ( "% centroidStdDevs: " + Utils . arrayToString ( m_centroidStdDevs ) + "\n" ) ; result . append ( "%\n" ) ; return result . toString ( ) ; }
generates a comment string that documentates the data generator . by default this string is added at the beginning of the produced output as arff file type , next after the options .
