Package com.neuralnetwork.shared.neurons

Examples of com.neuralnetwork.shared.neurons.INeuron


   * com.neuralnetwork.shared.neurons.INeuron,
   * com.neuralnetwork.shared.values.IValue)}.
   */
  @Test
    public final void testLink() {
    INeuron n = new HiddenNeuron();
    ILink l = new Link(n, n, new OneValue());
    assertNotNull(l);
   
    try {
      new Link(null, n, new OneValue());
View Full Code Here


    IOutputLayer l2 = new OutputLayer(LAYER_SIZE);
    l2.build();
    Connections.getInstance().create(l1, l2);
   
    Iterator<IInputNeuron> iter1 = l1.iterator();
        INeuron tmp = null;
        while (iter1.hasNext()) {
            tmp = iter1.next();
            Iterator<IOutputNeuron> iter2 = l2.iterator();
            for (ILink l : tmp.getOutputLinks()) {
              if (iter2.hasNext()) {
                    assertEquals(l.getTail(), iter2.next());
              }
            }
         }
View Full Code Here

TOP

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

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.