コード例 #1
0
        public SimpleLayer(IEnumerable <double> values)
        {
            nodes = new List <Node>();

            foreach (double value in values)
            {
                nodes.Add(new Node(value));
            }

            input = new SimpleLayerConnection(nodes);
        }
コード例 #2
0
        public SimpleLayer(LayerConnection inputConnection)
        {
            nodes = new List <Node>();

            foreach (Unit unit in inputConnection.enumerable)
            {
                nodes.Add(new ReferNode(unit));
            }

            input = new SimpleLayerConnection(nodes);
        }
コード例 #3
0
        public SimpleLayer(int n)
        {
            nodes = new List <Node>();

            for (int i = 0; i < n; i++)
            {
                nodes.Add(new Node());
            }

            input = new SimpleLayerConnection(nodes);
        }