A link for the Bidirectional Associative Memory (BAM) network.
상속: xpidea.neuro.net.adaline.AdalineLink
예제 #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++;
                }
            }
        }
예제 #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++;
                }
        }