Here you can find the source of prettyPrint(double[][] gammas, double[][] thetas, double[][] zprobs)
public static void prettyPrint(double[][] gammas, double[][] thetas, double[][] zprobs)
//package com.java2s; import java.util.Arrays; public class Main { public static void prettyPrint(double[][] gammas, double[][] thetas, double[][] zprobs) { prettyPrint("GAMMAS", gammas); prettyPrint("THETAS", thetas); prettyPrint("ZPROBS", zprobs); }// w w w . jav a 2 s . c o m public static void prettyPrint(String name, double[][] matrix) { prettyPrint(name, matrix, matrix.length); } public static void prettyPrint(String name, double[][] matrix, int maxCount) { System.out.println(name + ": "); for (double[] array : matrix) { System.out.println(Arrays.toString(array)); if (maxCount-- < 0) break; } System.out.println(); } }