Your preferences have been saved!
» Reverses the contents of the array. - //package org.wiztools.commons; import java.util.ArrayList; import java.util.List; /**  *  * @author subwiz  */ public final class ArrayUtil {     /**      * Reverses the contents of the array.... 17 Feb 12 » Retrive the quartile value from an array - import java.util.Arrays; public class Util{     /**      * Retrive the quartile value from an array      * .      * @param values THe array of data      * @param lowerPercent The percent cut off. For the lower quartile use 25,      *      for the upper-quartile use 75      * @return      */... 17 Feb 12 » Find the index of the array nearest to the value. - import java.util.Arrays; public class Util{ public class Util{          /**      * Find the index of the array nearest to the value. The values array can       * contain only unique values. If it doesn't the first occurence of a value      * in the values array is the one used, subsequent duplicate are ignored. If      * the value falls outside the bounds of the array, <b>null</b> is returned      *... 17 Feb 12 » Two double value arrays are almost equal - public class Util {   public static boolean almostEquals(double[] d1, double[] d2, double eps) {     for (int i = 0; i < d1.length; i++) {       double v1 = d1[i];       double v2 = d2[i];       if (!almostEquals(v1, v2, eps))         return false;     }     return true;   }... 17 Feb 12 » Compare equality of two two-dimensional boolean array - //package cc.mallet.util; import java.lang.reflect.Array; /**  * Static utility methods for arrays (like java.util.Arrays, but more useful).  *   * @author <a href="mailto:casutton@cs.umass.edu">Charles Sutton</a>  * @version $Id: ArrayUtils.java,v 1.1 2007/10/22 21:37:40 mccallum Exp $  */ public class Util {     public static boolean equals (boolean[][] m1, boolean[][] m2)... 17 Feb 12 » Get the maximum value in a double array - //package cc.mallet.util; import java.lang.reflect.Array; /**  * Static utility methods for arrays (like java.util.Arrays, but more useful).  *   * @author <a href="mailto:casutton@cs.umass.edu">Charles Sutton</a>  * @version $Id: ArrayUtils.java,v 1.1 2007/10/22 21:37:40 mccallum Exp $  */ public class Util {      public static int argmax (double [] elems)... 17 Feb 12 » Checks whether two arrays are the same type taking into - import java.lang.reflect.Array; public class Main {   /**    * <p>Checks whether two arrays are the same type taking into account    * multi-dimensional arrays.</p>    *     * @param array1 the first array, must not be <code>null</code>    * @param array2 the second array, must not be <code>null</code>    * @return <code>true</code> if type of arrays matches    * @throws IllegalArgumentException if either array is <code>null</code>... 17 Feb 12 » Checks whether two arrays are the same length, treating null - import java.lang.reflect.Array; public class Main {   // Is same length   //-----------------------------------------------------------------------   /**    * <p>Checks whether two arrays are the same length, treating    * <code>null</code> arrays as length <code>0</code>.    *    * <p>Any multi-dimensional aspects of the arrays are ignored.</p>    * ... 17 Feb 12 » String search and reflection helper methods - import java.util.Hashtable; import java.util.Enumeration; import java.util.NoSuchElementException; /**  * A collection of general utility methods.  */ public class Utilities{         ... 17 Feb 12 » Compares the initial elements of two arrays. - import java.util.Arrays; public class Main {   /**    * Compares the initial elements of two arrays.    *    * @param a1  array 1.    * @param a2  array 2.    *    * @return An integer showing the relative ordering.    */... 17 Feb 12