private void append(StringBuilder buffer,double[] data,String prefix,String separator,String suffix){
  buffer.append(prefix);
  for (int i=0; i < data.length; ++i) {
    if (i > 0) {
      buffer.append(separator);
    }
    buffer.append(data[i]);
  }
  buffer.append(suffix);
}

private void append ( StringBuilder buffer , double [ ] data , String prefix , String separator , String suffix ) { buffer . append ( prefix ) ; for ( int i = 0 ; i < data . length ; ++ i ) { if ( i > 0 ) { buffer . append ( separator ) ; } buffer . append ( data [ i ] ) ; } buffer . append ( suffix ) ; }
append a text representation of an array to a buffer .
