示例#1
0
        /// <summary>
        /// Create output node.
        /// </summary>
        /// <returns>An output node.</returns>
        public SubstrateNode CreateOutputNode()
        {
            SubstrateNode result = CreateNode();

            this.outputNodes.Add(result);
            return(result);
        }
示例#2
0
        /// <summary>
        /// Create a node.
        /// </summary>
        /// <returns>The node.</returns>
        public SubstrateNode CreateNode()
        {
            SubstrateNode result = new SubstrateNode(this.currentNeuronNumber++,
                                                     this.dimensions);

            return(result);
        }
 /// <summary>
 /// Construct the link.
 /// </summary>
 /// <param name="source">The source node.</param>
 /// <param name="target">The target node.</param>
 public SubstrateLink(SubstrateNode source, SubstrateNode target)
 {
     this.source = source;
     this.target = target;
 }
 /// <summary>
 /// Create a node.
 /// </summary>
 /// <returns>The node.</returns>
 public SubstrateNode CreateNode()
 {
     SubstrateNode result = new SubstrateNode(this.currentNeuronNumber++,
             this.dimensions);
     return result;
 }
 /// <summary>
 /// Create a link.
 /// </summary>
 /// <param name="inputNode">The from node.</param>
 /// <param name="outputNode">The to node.</param>
 public void CreateLink(SubstrateNode inputNode, SubstrateNode outputNode)
 {
     SubstrateLink link = new SubstrateLink(inputNode, outputNode);
     this.links.Add(link);
 }