public static String cutpointsToString(double[] cutPoints,boolean[] cutAndLeft){
  StringBuffer text=new StringBuffer("");
  if (cutPoints == null) {
    text.append("\n# no cutpoints found - attribute \n");
  }
 else {
    text.append("\n#* " + cutPoints.length + " cutpoint(s) -\n");
    for (int i=0; i < cutPoints.length; i++) {
      text.append("# " + cutPoints[i] + " ");
      text.append("" + cutAndLeft[i] + "\n");
    }
    text.append("# end\n");
  }
  return text.toString();
}

public static String cutpointsToString ( double [ ] cutPoints , boolean [ ] cutAndLeft ) { StringBuffer text = new StringBuffer ( "" ) ; if ( cutPoints == null ) { text . append ( "\n# no cutpoints found - attribute \n" ) ; } else { text . append ( "\n#* " + cutPoints . length + " cutpoint(s) -\n" ) ; for ( int i = 0 ; i < cutPoints . length ; i ++ ) { text . append ( "# " + cutPoints [ i ] + " " ) ; text . append ( "" + cutAndLeft [ i ] + "\n" ) ; } text . append ( "# end\n" ) ; } return text . toString ( ) ; }
returns a string representing the cutpoints
