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

Method relErr

JSAT/test/jsat/math/FastMathTest.java:48–51  ·  view source on GitHub ↗
(double expected, double actual)

Source from the content-addressed store, hash-verified

46 }
47
48 public static double relErr(double expected, double actual)
49 {
50 return Math.abs((expected-actual)/expected);
51 }
52
53 /**
54 * Test of log2 method, of class FastMath.

Callers 8

testLog2Method · 0.95
testLog2_2pd1Method · 0.95
testLog2_c11Method · 0.95
testPow2_doubleMethod · 0.95
testPowMethod · 0.95
testLogMethod · 0.95
testExpMethod · 0.95
testDigammaMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected