@Test public void testSetError(){ double error = neuron.getError(); assertTrue(error != TEST_DOUBLE_VALUE); neuron.setError(TEST_DOUBLE_VALUE); assertEquals("Neuron error does not have expected value", TEST_DOUBLE_VALUE, neuron.getError(), 0); }
public void setError(double error) { errorValue = error; }
Neuron implements Serializable { public void setError(double error) { errorValue = error; } }
Neuron implements Serializable { public void setError(double error) { errorValue = error; } Neuron(final ActivationFunction function, int inputDim, double biasValue);  Neuron(final ActivationFunction function, int inputDim, double biasValue, final Random random);  Neuron(final ActivationFunction function, int inputDim, double biasValue, final Collection<Neuron> nextNeurons); }
Neuron implements Serializable { public void setError(double error) { errorValue = error; } Neuron(final ActivationFunction function, int inputDim, double biasValue);  Neuron(final ActivationFunction function, int inputDim, double biasValue, final Random random);  Neuron(final ActivationFunction function, int inputDim, double biasValue, final Collection<Neuron> nextNeurons); ActivationFunction getActivationFunction(); double[] getWeights(); double getError(); void setError(double error); double[] getDeltas(); double processInput(final double[] inputs); double getOutput(); double getNeuronInput(); double getBiasInput(); boolean addNeuron(Neuron neuron); boolean addAllNeurons(Collection<Neuron> neurons); boolean removeNeuron(Neuron neuron); void reset(); }
Neuron implements Serializable { public void setError(double error) { errorValue = error; } Neuron(final ActivationFunction function, int inputDim, double biasValue);  Neuron(final ActivationFunction function, int inputDim, double biasValue, final Random random);  Neuron(final ActivationFunction function, int inputDim, double biasValue, final Collection<Neuron> nextNeurons); ActivationFunction getActivationFunction(); double[] getWeights(); double getError(); void setError(double error); double[] getDeltas(); double processInput(final double[] inputs); double getOutput(); double getNeuronInput(); double getBiasInput(); boolean addNeuron(Neuron neuron); boolean addAllNeurons(Collection<Neuron> neurons); boolean removeNeuron(Neuron neuron); void reset();  }