MCPcopy Index your code
hub / github.com/EdwardRaff/JSAT / log2

Method log2

JSAT/src/jsat/math/FastMath.java:55–58  ·  view source on GitHub ↗

Computes log 2 (x) @param x the input @return the log base 2 of x

(double x)

Source from the content-addressed store, hash-verified

53 * @return the log base 2 of {@code x}
54 */
55 public static double log2(double x)
56 {
57 return log2_2pd1(x);
58 }
59
60 /**
61 * Computes log<sub>2</sub>(x) using a Pade approximation. It is slower than

Callers 4

testLog2Method · 0.95
fixLevelMethod · 0.95
perpMethod · 0.95
logMethod · 0.95

Calls 1

log2_2pd1Method · 0.95

Tested by 1

testLog2Method · 0.76