Ejemplo n.º 1
0
 private void addThreshold(Node node, double weight)
 {
     //add a threshod input to a node
     Node thresh = new Node(node.getLayer(), node.getPos(), true);
     thresh.setOutput(-1);
     Connection cn = new Connection(thresh, node, weight);
     thresh.addOutputConnection(cn);
     node.addInputConnection(cn);
 }
Ejemplo n.º 2
0
 public void addOutputConnection(Connection cn)
 {
     this.outputConnections.Add(cn);
 }
Ejemplo n.º 3
0
 private void addConnection(Node fromNode, Node toNode, double weight)
 {
     //connect node to node
     Connection cn = new Connection(fromNode, toNode, weight);
     fromNode.addOutputConnection(cn);
     toNode.addInputConnection(cn);
 }
Ejemplo n.º 4
0
 public void addInputConnection(Connection cn)
 {
     this.inputConnections.Add(cn);
 }