/** * Tools. Well, not many of them. You can put your additional helper routines * for example here if you play around with these example codes any longer... */ /** * * */ public class Tools { public static double[][] threshold(double[][] original, double threshold){ double[][] result = new double[original.length][original[0].length]; for(int i=0;i=threshold ? 1.0 : 0.0; } } return result; } }