flowsim.util
Class Log2

java.lang.Object
  |
  +--flowsim.util.Log2

public final class Log2
extends java.lang.Object


Constructor Summary
Log2()
           
 
Method Summary
static double log2(int x)
          Calculate approximate of logarithm in basis 2 of an integer number+1.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log2

public Log2()
Method Detail

log2

public static double log2(int x)
Calculate approximate of logarithm in basis 2 of an integer number+1. In other words, the number of digits which are required to store that number in base 2 format. For example log2(0)=0, log2(1)=1, log2(3)=2, ...