Package com.neuralnetwork.shared.neurons

Examples of com.neuralnetwork.shared.neurons.AbstractOutputNeuron


   * .shared.neurons.AbstractOutputNeuron
   * #AbstractOutputNeuron()}.
   */
  @Test
  public final void testAbstractOutputNeuron() {
    AbstractOutputNeuron ai = new OutputNeuron();
    ai.setValue(new ZeroValue());
    assertEquals(ai.getType(), NeuronType.OUTPUT);
    assertEquals(ai.getValue(), new ZeroValue());
  }
View Full Code Here


   * .shared.neurons.AbstractOutputNeuron
   * #getOutputValue()}.
   */
  @Test
  public final void testGetOutputValue() {
    AbstractOutputNeuron ai = new OutputNeuron();
    ai.setValue(new OneValue());
    assertEquals(ai.getType(), NeuronType.OUTPUT);
    assertEquals(ai.getOutputValue(),
                 new OneValue().getValue(), TEN * Math.ulp(1.0));
  }
 
View Full Code Here

TOP

Related Classes of com.neuralnetwork.shared.neurons.AbstractOutputNeuron

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.