edu.dhbw.andar
Class GenericFunctions

java.lang.Object
  extended by edu.dhbw.andar.GenericFunctions

public class GenericFunctions
extends java.lang.Object

Author:
Tobias Domhan

Constructor Summary
GenericFunctions()
           
 
Method Summary
static double log2(double x)
          return the log of x base 2
static int nextPowerOfTwo(int x)
          returns the smallest power of two that is greater than or equal to the absolute value of x
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericFunctions

public GenericFunctions()
Method Detail

nextPowerOfTwo

public static final int nextPowerOfTwo(int x)
returns the smallest power of two that is greater than or equal to the absolute value of x

Parameters:
x -
Returns:

log2

public static final double log2(double x)
return the log of x base 2

Parameters:
x -
Returns: