@Test public void testActivate(){ for(int i = 0; i < INPUT_VALUES.length; i++){ double functOutput = function.activate(INPUT_VALUES[i]); assertEquals("The function output is not as expected.", EXPECTED_FUNCT_OUT_VALUES[i], functOutput, DOUBLES_EQUAL_DELTA); } }
public double activate(final double input) { return 2.0 / (1.0 + Math.exp(-2.0 * input)) - 1.0; }
ActivationTANH extends ActivationFunction { public double activate(final double input) { return 2.0 / (1.0 + Math.exp(-2.0 * input)) - 1.0; } }
ActivationTANH extends ActivationFunction { public double activate(final double input) { return 2.0 / (1.0 + Math.exp(-2.0 * input)) - 1.0; }  }
ActivationTANH extends ActivationFunction { public double activate(final double input) { return 2.0 / (1.0 + Math.exp(-2.0 * input)) - 1.0; }  double activate(final double input); double derivative(final double input); double getMax(); double getMin(); }
ActivationTANH extends ActivationFunction { public double activate(final double input) { return 2.0 / (1.0 + Math.exp(-2.0 * input)) - 1.0; }  double activate(final double input); double derivative(final double input); double getMax(); double getMin(); final static double MAX; final static double MIN; }