com.metsci.glimpse.util.math.fast
Class FastLog
java.lang.Object
com.metsci.glimpse.util.math.fast.FastFunc
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
Constructor Summary |
FastLog(int samples)
|
Method Summary |
double |
evaluate(double x)
|
double |
log10(double x)
|
double |
log2(double x)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
FastLog
public FastLog(int samples)
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.