Your preferences have been saved!
» Find the index of the value nearest to the key. - import java.util.Arrays; public class Util{     /**      * Find the index of the value nearest to the key. 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.      *      * @param values Values to search through for the nearest point.      * @param key The key to search for the nearest neighbor in values.      * @return the index of the value nearest to the key.... 17 Feb 12 » Calculate the minimum and maximum values out of a list - import java.util.List; public class Util {   /**    * Calculate the minimum and maximum values out of a list of doubles.    *     * @param values    *            the input values    * @return an array with the minimum and maximum values    */   public static double[] minmax(List<Double> values) {... 17 Feb 12 » Searches the specified array of doubles for the specified value - import java.util.Arrays; /**  * <p>Static methods for doing useful math</p><hr>  *  * @author  : $Author: brian $  * @version : $Revision: 1.1 $  *  * <hr><p><font size="-1" color="#336699"><a href="http://www.mbari.org">  * The Monterey Bay Aquarium Research Institute (MBARI)</a> provides this  * documentation and code &quot;as is&quot;, with no warranty, express or... 17 Feb 12 » Return true if the array contains the element. - //package org.t2framework.commons.util; import java.lang.reflect.Array; /**  * ArrayUtil is an utility class for processing array.  *   * @author shot  */ public class ArrayUtil {   /**    * Return true if the array contains the element.... 17 Feb 12 » Sorts parts of the given array with the quicksort algorithm - /**  * generate ordered permutations of an integer array  *   * @author Marc Woerlein (woerlein@informatik.uni-erlangen.de)  */ public class Permutations {  /**    * Sorts parts of the given array with the quicksort algorithm using the    * given comparator.    *     * @param field... 17 Feb 12 » Get the index of an array element - //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{... 17 Feb 12 » Returns the number of times a value occurs in a - //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 {     /** Returns the number of times a value occurs in a given array. */... 17 Feb 12 » Check if object 1 contains object 2 - import java.lang.reflect.Array; import java.util.Collection; import java.util.Map; /**  * <code>ContainUtil</code> will check if object 1 contains object 2.  * Object 1 may be an Object, array, Collection, or a Map  *  * @author Matt Baldree (matt@smallleap.com)  * @version $Revision: 2737 $  */... 17 Feb 12 » Sort array utilities - import java.util.Arrays; import java.util.Comparator; import java.util.Iterator; import java.util.List; /**  * Utility class providing some useful static sort methods. The sort routines  * all return index permutations p such that data[p[0]],..,data[p[data.length-1]]  * is in sorted order. The data array itself is not modified.  * To actually rearrange the array elements, the inverse of p can be used to  * permute the array, such that data[0],..,data[data.length-1] is in sorted... 17 Feb 12 » If array contains given element - /**  * Collection of useful utilities to work with arrays.   *   * @version $Id: ArrayUtils.java,v 1.9 2007/01/23 06:00:30 bastafidli Exp $  * @author Peter Satury  * @code.reviewer Miro Halas  * @code.reviewed 1.5 2005/07/29 07:36:24 bastafidli  */ public final class ArrayUtils {... 17 Feb 12