public void MachSoEinPaarConnectionsKlarVong(NeuronPosition pos, int count) { Random rnd = new Random(); for (int i = 0; i < count; ++i) { int layer1 = rnd.Next(1, neuron.Length); int height1 = rnd.Next(neuron[layer1].Count); neuron[layer1][height1].AddConnection(pos, Variablen.KuhleZufallsZahlen()); } }
public void LayerKommplettVerbinden(NeuronPosition pos, int layer, double connectionProbatility, int delay) { Random rnd = new Random(); connectionProbatility /= 100; for (int i = 0; i < neuron[layer].Count; ++i) { if (rnd.NextDouble() <= connectionProbatility) { neuron[layer][i].AddConnection(pos, Variablen.KuhleZufallsZahlen(), delay); } } }
public void LayerKommplettVerbinden(NeuronPosition pos, int layer, double connectionPropatility) //fügt jedem Neuron in layer eine connection zu pos hinzu { Random rnd = new Random(); connectionPropatility /= 100; for (int i = 0; i < neuron[layer].Count; ++i) { if (rnd.NextDouble() <= connectionPropatility) { neuron[layer][i].AddConnection(pos, Variablen.KuhleZufallsZahlen()); } } }
public Connection(NeuronPosition pos0) { Random rnd = new Random(); lastChange = 0; int a = rnd.Next(100); Pos = pos0; Weight = Variablen.KuhleZufallsZahlen(); if (a > 7) { delay = 0; } else { delay = a; } time = new List <double>(new double[delay + 1]); }
public void NeuronKommplettVerbinden(NeuronPosition pos, int layer, double connectionProbatility, int delay) { connectionProbatility /= 100; Random rnd = new Random(); for (int i = 0; i < neuron[layer].Count; ++i) { if (rnd.NextDouble() < connectionProbatility) { neuron[pos.layer][pos.height].AddConnection(new NeuronPosition(layer, i), Variablen.KuhleZufallsZahlen(), delay); } } }