com.metsci.glimpse.util.math.fast
Class FastLog

java.lang.Object
  extended by com.metsci.glimpse.util.math.fast.FastFunc
      extended by com.metsci.glimpse.util.math.fast.FastLog

public class FastLog
extends FastFunc

Provides about 12 digits of accuracy at a fraction of the cost of Math.log().

Author:
ellis

Field Summary
static double LN_2
           
static double LN_2_INV
           
static double LOG10_2
           
 
Constructor Summary
FastLog(int samples)
           
 
Method Summary
 double evaluate(double x)
           
 double log10(double x)
           
 double log2(double x)
           
 
Methods inherited from class com.metsci.glimpse.util.math.fast.FastFunc
lookup, lookup
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LN_2

public static final double LN_2

LN_2_INV

public static final double LN_2_INV

LOG10_2

public static final double LOG10_2
Constructor Detail

FastLog

public FastLog(int samples)
Method Detail

log2

public double log2(double x)

evaluate

public double evaluate(double x)
Overrides:
evaluate in class FastFunc

log10

public double log10(double x)


Copyright © 2012 Metron, Inc.. All Rights Reserved.