Implements output node in the BAM network.
Inheritance: xpidea.neuro.net.adaline.AdalineNode
Exemple #1
0
        /// <summary>
        ///     Overridden.Constucts the network topology.
        /// </summary>
        protected override void CreateNetwork()
        {
            nodes = new NeuroNode[NodesCount];
            links = new NeuroLink[LinksCount];
            for (var i = 0; i < InputNodesCount; i++)
            {
                nodes[i] = new BidirectionalAssociativeMemoryInputNode();
            }
            for (var i = InputNodesCount; i < InputNodesCount + OutputNodesCount; i++)
            {
                nodes[i] = new BidirectionalAssociativeMemoryOutputNode();
            }
            for (var i = 0; i < linksCount; i++)
            {
                links[i] = new BidirectionalAssociativeMemoryLink();
            }
            var k = 0;

            for (var i = 0; i < InputNodesCount; i++)
            {
                for (var j = InputNodesCount; j < InputNodesCount + OutputNodesCount; j++)
                {
                    nodes[i].LinkTo(nodes[j], links[k]);
                    k++;
                }
            }
        }
Exemple #2
0
        /// <summary>
        ///     Overridden.Constucts the network topology.
        /// </summary>
        protected override void CreateNetwork()
        {
            nodes = new NeuroNode[NodesCount];
            links = new NeuroLink[LinksCount];
            for (var i = 0; i < InputNodesCount; i++)
                nodes[i] = new BidirectionalAssociativeMemoryInputNode();
            for (var i = InputNodesCount; i < InputNodesCount + OutputNodesCount; i++)
                nodes[i] = new BidirectionalAssociativeMemoryOutputNode();
            for (var i = 0; i < linksCount; i++)
                links[i] = new BidirectionalAssociativeMemoryLink();
            var k = 0;

            for (var i = 0; i < InputNodesCount; i++)
                for (var j = InputNodesCount; j < InputNodesCount + OutputNodesCount; j++)
                {
                    nodes[i].LinkTo(nodes[j], links[k]);
                    k++;
                }
        }