|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metsci.glimpse.util.math.fast.QuickExp2
public class QuickExp2
Similar to QuickExp
but uses 2 smaller lookup tables instead of one large one.
We compensate the extra table lookup by using a minimax polynomial of smaller degree.
It has a maximum relative error of about 3.8e-6 and is about 10 times faster than Math.exp.
QuickExp
Constructor Summary | |
---|---|
QuickExp2()
|
Method Summary | |
---|---|
static double |
eval(double x)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuickExp2()
Method Detail |
---|
public static double eval(double x)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |