public static final String toBitString(Instance x,int L){
  StringBuilder sb=new StringBuilder(L);
  for (int i=0; i < L; i++) {
    sb.append((int)Math.round(x.value(i)));
  }
  return sb.toString();
}

public static final String toBitString ( Instance x , int L ) { StringBuilder sb = new StringBuilder ( L ) ; for ( int i = 0 ; i < L ; i ++ ) { sb . append ( ( int ) Math . round ( x . value ( i ) ) ) ; } return sb . toString ( ) ; }
tobitstring - returns a string representation of x = [ 0 , 0 , 1 , 0 , 1 , 0 , 0 , 0 ] , e . g . , " 000101000 " . note : it may be better to use a sparse representation for some applications .
