MCPcopy Create free account
hub / github.com/WinVector/Logistic / exp

Method exp

src/com/winvector/opt/impl/HelperFns.java:122–125  ·  view source on GitHub ↗

from: http://martin.ankerl.com/2007/02/11/optimized-exponential-functions-for-java/ �A Fast, Compact Approximation of the Exponential Function� Nicol N. Schraudolph 1998 @param x

(final double val)

Source from the content-addressed store, hash-verified

120 * @param x
121 */
122 private static double exp(final double val) {
123 final long tmp = (long) (1512775 * val + 1072632447);
124 return Double.longBitsToDouble(tmp << 32);
125 }
126
127 private static final double estExp0 = HelperFns.exp(0.0);
128

Callers 4

HelperFnsClass · 0.95
expScaleFastMethod · 0.95
mainMethod · 0.95
expScaleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected