org.vivoweb.harvester.util
Class MathHelper

java.lang.Object
  extended by org.vivoweb.harvester.util.MathHelper

public class MathHelper
extends java.lang.Object

Set of math helper methods

Author:
Christopher Haines hainesc@ctrip.ufl.edu

Constructor Summary
MathHelper()
           
 
Method Summary
static double minDoubleIndex(double... d)
          Find minimum of a set of doubles
static float minFloatIndex(float... d)
          Find minimum of a set of floats
static int minIntIndex(int... d)
          Find minimum of a set of ints
static long minLongIndex(long... d)
          Find minimum of a set of longs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathHelper

public MathHelper()
Method Detail

minIntIndex

public static int minIntIndex(int... d)
Find minimum of a set of ints

Parameters:
d - set of ints
Returns:
the index of the minimum in the set

minDoubleIndex

public static double minDoubleIndex(double... d)
Find minimum of a set of doubles

Parameters:
d - set of doubles
Returns:
the index of the minimum in the set

minFloatIndex

public static float minFloatIndex(float... d)
Find minimum of a set of floats

Parameters:
d - set of floats
Returns:
the index of the minimum in the set

minLongIndex

public static long minLongIndex(long... d)
Find minimum of a set of longs

Parameters:
d - set of longs
Returns:
the index of the minimum in the set