예제 #1
0
파일: NeuralNet.cs 프로젝트: crowell/SMiLe
 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);
 }
예제 #2
0
파일: NeuralNet.cs 프로젝트: crowell/SMiLe
 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);
 }
예제 #3
0
파일: Connection.cs 프로젝트: crowell/SMiLe
        private double weight; //weight of the connection

        #endregion Fields

        #region Constructors

        public Connection(Node from, Node to, double weight)
        {
            this.weight = weight;
            this.from = from;
            this.to = to;
        }