public SimpleLayer(IEnumerable <double> values) { nodes = new List <Node>(); foreach (double value in values) { nodes.Add(new Node(value)); } input = new SimpleLayerConnection(nodes); }
public SimpleLayer(LayerConnection inputConnection) { nodes = new List <Node>(); foreach (Unit unit in inputConnection.enumerable) { nodes.Add(new ReferNode(unit)); } input = new SimpleLayerConnection(nodes); }
public SimpleLayer(int n) { nodes = new List <Node>(); for (int i = 0; i < n; i++) { nodes.Add(new Node()); } input = new SimpleLayerConnection(nodes); }