Fromneuron.calculate();
Neuron toneuron1 = new Neuron(), toneuron2 = new Neuron(), toneuron3 = new Neuron();
List<Connection> inputConnections = new ArrayList<Connection>();
{
{
Connection connection = new Connection(Fromneuron, toneuron1,
0.5d);
inputConnections.add(connection);
}
{
Connection connection = new Connection(Fromneuron, toneuron2,
0.25d);
inputConnections.add(connection);
}
{
Connection connection = new Connection(Fromneuron, toneuron3,
-0.25d);
inputConnections.add(connection);
}
}