@Test public void testDerivative(){ for(int i = 0; i < INPUT_VALUES.length; i++){ double functOutput = function.derivative(INPUT_VALUES[i]); assertEquals("The function derivation output is not as expected.", EXPECTED_FUNCT_DERIVATIVE_VALUES[i], functOutput, DOUBLES_EQUAL_DELTA); } }
@Override public double derivative(double input) { if (input == Double.NEGATIVE_INFINITY || input == Double.POSITIVE_INFINITY) return 0; else return -2.0 * input * activate(input); }
ActivationGaussian extends ActivationFunction { @Override public double derivative(double input) { if (input == Double.NEGATIVE_INFINITY || input == Double.POSITIVE_INFINITY) return 0; else return -2.0 * input * activate(input); } }
ActivationGaussian extends ActivationFunction { @Override public double derivative(double input) { if (input == Double.NEGATIVE_INFINITY || input == Double.POSITIVE_INFINITY) return 0; else return -2.0 * input * activate(input); }  }
ActivationGaussian extends ActivationFunction { @Override public double derivative(double input) { if (input == Double.NEGATIVE_INFINITY || input == Double.POSITIVE_INFINITY) return 0; else return -2.0 * input * activate(input); }  @Override double activate(double input); @Override double derivative(double input); @Override double getMax(); @Override double getMin(); }
ActivationGaussian extends ActivationFunction { @Override public double derivative(double input) { if (input == Double.NEGATIVE_INFINITY || input == Double.POSITIVE_INFINITY) return 0; else return -2.0 * input * activate(input); }  @Override double activate(double input); @Override double derivative(double input); @Override double getMax(); @Override double getMin(); final static double MAX; final static double MIN; }