List of utility methods to do Array Print
String | formatStringForPrettyPrintingRelatedValues(double[] values, int minDigits) format String For Pretty Printing Related Values double diff = minDiff(values, true); double roundingFactor = Math.round(Math.log(diff) / Math.log(10) - 0.5); if (roundingFactor > -minDigits) roundingFactor = -minDigits; double normFactor = Math.pow(10, roundingFactor); roundingFactor = -roundingFactor; return "%." + String.format("%.0f", roundingFactor) + "f"; |
void | prettyPrint(double[][] gammas, double[][] thetas, double[][] zprobs) pretty Print prettyPrint("GAMMAS", gammas); prettyPrint("THETAS", thetas); prettyPrint("ZPROBS", zprobs); |
String | print(Object[] array)return print(array, ", "); |
void | print(Object[] array)if (array == null) { System.out.println("object is null"); } else { System.out.println(Arrays.asList(array)); |
void | print(String[] files)for (int i = 0; i < files.length; i++) { System.out.print(files[i] + " "); System.out.print("\n"); |
void | print1DIntArray(int[] array) print D Int Array printArray(getBoxedIntArray(array)); |
String | printArray(boolean[] array) print Array StringBuilder sb = new StringBuilder(); for (int i = 0; i < array.length; i++) { if (i > 0) { sb.append(" "); sb.append(array[i] ? "1" : "0"); return sb.reverse().toString(); ... |
void | printArray(double[] _a) Prints on console the elements of a double array. System.out.println(array2string(_a)); |
void | printArray(double[] _a) Prints on console the elements of an array of doubles System.out.println(array2string(_a)); |
void | printArray(double[] a) print array of values in one line for (int i = 0; i < a.length; i++) { System.out.format("%.2f ", a[i]); System.out.println(); |